summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice <maurice.henke@protonmail.com>2021-04-11 14:04:40 +0200
committerMaurice <maurice.henke@protonmail.com>2021-04-11 14:04:40 +0200
commit1546e73ac1a28c646ada74cb2e92c2cfa24ae6d5 (patch)
treefa9d4004b390a7badccf5da765c4c41c63649228
parent9faa07d4e276eff34b4eaf6412bb9305f4e4566d (diff)
Include guard
-rw-r--r--include/chronos/timer.h7
-rw-r--r--include/data/items.h13
-rw-r--r--include/data/stages.h13
-rw-r--r--include/display/console.h9
-rw-r--r--include/gc/OSCache.h7
-rw-r--r--include/gc/card.h8
-rw-r--r--include/memory.h14
-rw-r--r--include/patch.h7
-rw-r--r--include/tp/JFWSystem.h7
-rw-r--r--include/tp/JKRExpHeap.h7
-rw-r--r--include/tp/control.h7
-rw-r--r--include/tp/d_a_alink.h9
-rw-r--r--include/tp/d_a_shop_item_static.h7
-rw-r--r--include/tp/d_com_inf_game.h11
-rw-r--r--include/tp/d_item.h7
-rw-r--r--include/tp/d_item_data.h13
-rw-r--r--include/tp/d_kankyo.h7
-rw-r--r--include/tp/d_map_path_dmap.h7
-rw-r--r--include/tp/d_menu_collect.h7
-rw-r--r--include/tp/d_meter2_info.h9
-rw-r--r--include/tp/d_msg_object.h7
-rw-r--r--include/tp/d_save.h7
-rw-r--r--include/tp/d_stage.h9
-rw-r--r--include/tp/dzx.h7
-rw-r--r--include/tp/evt_control.h7
-rw-r--r--include/tp/f_ap_game.h7
-rw-r--r--include/tp/f_op_actor_mng.h7
-rw-r--r--include/tp/f_op_scene_req.h7
-rw-r--r--include/tp/m_do_controller_pad.h7
-rw-r--r--include/tp/m_do_ext.h7
-rw-r--r--include/tp/resource.h7
31 files changed, 174 insertions, 81 deletions
diff --git a/include/chronos/timer.h b/include/chronos/timer.h
index c8290ec..17d255b 100644
--- a/include/chronos/timer.h
+++ b/include/chronos/timer.h
@@ -4,7 +4,9 @@
* @author AECX
* @bug No known bugs.
*/
-#pragma once
+#ifndef LIBTP_CHRONOS_H
+#define LIBTP_CHRONOS_H
+
#include <cstdint>
namespace libtp::chronos
@@ -45,4 +47,5 @@ namespace libtp::chronos
uint32_t m_Interval;
handler m_Handler;
};
-} // namespace libtp::chronos \ No newline at end of file
+} // namespace libtp::chronos
+#endif \ No newline at end of file
diff --git a/include/data/items.h b/include/data/items.h
index 6851d6a..f5351db 100644
--- a/include/data/items.h
+++ b/include/data/items.h
@@ -1,10 +1,11 @@
-/**
- * List of all item ids with names.
+/** @file items.h
+ * @brief Constants and definitions to work with items
+ *
+ * @author AECX
+ * @bug No known bugs.
*/
-#pragma once
-
-#ifndef _LIBTP_ITEMS
-#define _LIBTP_ITEMS
+#ifndef LIBTP_ITEMS_H
+#define LIBTP_ITEMS_H
#include <cstdint>
diff --git a/include/data/stages.h b/include/data/stages.h
index 57bdd43..e25550c 100644
--- a/include/data/stages.h
+++ b/include/data/stages.h
@@ -1,14 +1,13 @@
-/** @file stages.h
+/** @file stages.h
* @brief Constants and definitions to work with stages
*
- * @author AECX
- * @bug No known bugs.
+ * @author AECX
+ * @bug No known bugs.
*/
+#ifndef LIBTP_STAGES_H
+#define LIBTP_STAGES_H
-#pragma once
-
-#ifndef _LIBTP_STAGE_CONSTANTS
-#define _LIBTP_STAGE_CONSTANTS
+#include <cstdint>
namespace libtp::data::stage
{
diff --git a/include/display/console.h b/include/display/console.h
index 3a4dc5d..e1a8ff5 100644
--- a/include/display/console.h
+++ b/include/display/console.h
@@ -7,10 +7,12 @@
* @author AECX
* @bug No known bugs.
*/
-#pragma once
+#ifndef LIBTP_CONSOLE_H
+#define LIBTP_CONSOLE_H
+
#include <cstdint>
-#include "../tp/JFWSystem.h"
+#include "display/console.h"
namespace libtp::display
{
@@ -99,4 +101,5 @@ namespace libtp::display
* @return The pointer to the console line
*/
char* print( uint8_t line, const char* text );
-} // namespace libtp::display \ No newline at end of file
+} // namespace libtp::display
+#endif \ No newline at end of file
diff --git a/include/gc/OSCache.h b/include/gc/OSCache.h
index 52446fc..f6a9d2d 100644
--- a/include/gc/OSCache.h
+++ b/include/gc/OSCache.h
@@ -6,7 +6,9 @@
* @author Zephiles
* @bug No known bugs.
*/
-#pragma once
+#ifndef GC_OSCACHE_H
+#define GC_OSCACHE_H
+
#include <cstdint>
namespace libtp::gc::os_cache
@@ -33,4 +35,5 @@ namespace libtp::gc::os_cache
// DMAErrorHandler
// __OSCacheInit
}
-} // namespace libtp::gc::os_cache \ No newline at end of file
+} // namespace libtp::gc::os_cache
+#endif \ No newline at end of file
diff --git a/include/gc/card.h b/include/gc/card.h
index b98cfa0..15a8fc9 100644
--- a/include/gc/card.h
+++ b/include/gc/card.h
@@ -6,7 +6,9 @@
* @author AECX
* @bug No known bugs.
*/
-#pragma once
+#ifndef GC_CARD_H
+#define GC_CARD_H
+
#include <cstdint>
#define CARD_SLOT_A 0
@@ -198,4 +200,6 @@ namespace libtp::gc::card
int32_t CARDWrite( CARDFileInfo* fileInfo, void* addr, int32_t length, int32_t offset );
// int32_t CARDWriteAsync( CARDFileInfo* fileInfo, void* addr, int32_t length, int32_t offset, CARDCallback callback );
}
-} // namespace libtp::gc::card \ No newline at end of file
+} // namespace libtp::gc::card
+
+#endif \ No newline at end of file
diff --git a/include/memory.h b/include/memory.h
index 65d3ee7..8a97a75 100644
--- a/include/memory.h
+++ b/include/memory.h
@@ -1,8 +1,15 @@
+/** @file memory.h
+ * @author PistonMiner
+ * @brief Memory Functions
+ *
+ * @bug No known bugs
+ */
+#ifndef LIBTP_MEMORY_H
+#define LIBTP_MEMORY_H
-
-#pragma once
#include <cstddef>
#include <cstdint>
+
namespace libtp::memory
{
extern "C"
@@ -10,4 +17,5 @@ namespace libtp::memory
void* clearMemory( void* ptr, size_t size );
void clear_DC_IC_Cache( void* ptr, uint32_t size );
}
-} // namespace libtp::memory \ No newline at end of file
+} // namespace libtp::memory
+#endif \ No newline at end of file
diff --git a/include/patch.h b/include/patch.h
index 17a12e5..4dff3d3 100644
--- a/include/patch.h
+++ b/include/patch.h
@@ -4,7 +4,9 @@
*
* @bug No known bugs
*/
-#pragma once
+#ifndef LIBTP_PATCH_H
+#define LIBTP_PATCH_H
+
#include <cstdint>
#include "memory.h"
@@ -34,4 +36,5 @@ namespace libtp::patch
return reinterpret_cast<Func>( trampoline );
}
-} // namespace libtp::patch \ No newline at end of file
+} // namespace libtp::patch
+#endif \ No newline at end of file
diff --git a/include/tp/JFWSystem.h b/include/tp/JFWSystem.h
index 15e41f6..7c091c9 100644
--- a/include/tp/JFWSystem.h
+++ b/include/tp/JFWSystem.h
@@ -5,7 +5,9 @@
* @author AECX
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_JFWSYSTEM_H
+#define TP_JFWSYSTEM_H
+
#include <cstdint>
namespace libtp::tp::jfw_system
@@ -39,4 +41,5 @@ namespace libtp::tp::jfw_system
{
extern SystemConsole* systemConsole;
}
-} // namespace libtp::tp::jfw_system \ No newline at end of file
+} // namespace libtp::tp::jfw_system
+#endif \ No newline at end of file
diff --git a/include/tp/JKRExpHeap.h b/include/tp/JKRExpHeap.h
index 32b9645..7c77f0a 100644
--- a/include/tp/JKRExpHeap.h
+++ b/include/tp/JKRExpHeap.h
@@ -4,7 +4,9 @@
* @author Zephiles
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_JKREXPHEAP_H
+#define TP_JKREXPHEAP_H
+
#include <cstdint>
namespace libtp::tp::jkr_exp_heap
@@ -27,4 +29,5 @@ namespace libtp::tp::jkr_exp_heap
*/
void do_free_JKRExpHeap( void* heap, void* ptr );
}
-} // namespace libtp::tp::jkr_exp_heap \ No newline at end of file
+} // namespace libtp::tp::jkr_exp_heap
+#endif \ No newline at end of file
diff --git a/include/tp/control.h b/include/tp/control.h
index ae987a4..e3d56a1 100644
--- a/include/tp/control.h
+++ b/include/tp/control.h
@@ -5,7 +5,9 @@
* @author Lunar Soap
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_CONTROL_H
+#define TP_CONTROL_H
+
#include <cstdint>
namespace libtp::tp::control
@@ -14,4 +16,5 @@ namespace libtp::tp::control
{
bool render( void* TControl );
}
-} // namespace libtp::tp::control \ No newline at end of file
+} // namespace libtp::tp::control
+#endif \ No newline at end of file
diff --git a/include/tp/d_a_alink.h b/include/tp/d_a_alink.h
index 0fa5a1a..1fc8945 100644
--- a/include/tp/d_a_alink.h
+++ b/include/tp/d_a_alink.h
@@ -8,10 +8,12 @@
* @author Zephiles
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_D_A_ALINK_H
+#define TP_D_A_ALINK_H
+
#include <cstdint>
-#include "d_com_inf_game.h"
+#include "tp/d_com_inf_game.h"
namespace libtp::tp::d_a_alink
{
@@ -146,4 +148,5 @@ namespace libtp::tp::d_a_alink
extern ClimbVars climbVars;
extern LinkStatus* linkStatus;
}
-} // namespace libtp::tp::d_a_alink \ No newline at end of file
+} // namespace libtp::tp::d_a_alink
+#endif \ No newline at end of file
diff --git a/include/tp/d_a_shop_item_static.h b/include/tp/d_a_shop_item_static.h
index 99d5d58..80ab328 100644
--- a/include/tp/d_a_shop_item_static.h
+++ b/include/tp/d_a_shop_item_static.h
@@ -8,7 +8,9 @@
* @author Lunar Soap
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_D_A_SHOP_ITEM_STATIC_H
+#define TP_D_A_SHOP_ITEM_STATIC_H
+
#include <cstdint>
namespace libtp::tp::d_a_shop_item_static
@@ -69,4 +71,5 @@ namespace libtp::tp::d_a_shop_item_static
{
extern ShopItemData shopItemData[23]; // mData__12daShopItem_c
}
-} // namespace libtp::tp::d_a_shop_item_static \ No newline at end of file
+} // namespace libtp::tp::d_a_shop_item_static
+#endif \ No newline at end of file
diff --git a/include/tp/d_com_inf_game.h b/include/tp/d_com_inf_game.h
index c860101..bccef8f 100644
--- a/include/tp/d_com_inf_game.h
+++ b/include/tp/d_com_inf_game.h
@@ -8,10 +8,12 @@
* @author AECX
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_D_COM_INF_GAME_H
+#define TP_D_COM_INF_GAME_H
+
#include <cstdint>
-#include "evt_control.h"
+#include "tp/evt_control.h"
namespace libtp::tp::d_com_inf_game
{
@@ -28,6 +30,7 @@ namespace libtp::tp::d_com_inf_game
uint8_t eventBits[0x150]; // Bitfield (QuestLogOffset - 7F0)
uint8_t miniGameBits[0x18]; // Bitfield
} __attribute__( ( __packed__ ) );
+ static_assert( sizeof( ScratchPad ) == 0x958 );
/**
* @brief Holds information about the current stage
@@ -116,11 +119,11 @@ namespace libtp::tp::d_com_inf_game
LinkMapVars* linkMapPtr; // 5DA0 - 5DAB
uint8_t unk_5dac[0x18060];
} __attribute__( ( __packed__ ) );
- static_assert( sizeof( ScratchPad ) == 0x958 );
static_assert( sizeof( GameInfo ) == 0x1DE10 );
extern "C"
{
extern GameInfo dComIfG_gameInfo;
}
-} // namespace libtp::tp::d_com_inf_game \ No newline at end of file
+} // namespace libtp::tp::d_com_inf_game
+#endif \ No newline at end of file
diff --git a/include/tp/d_item.h b/include/tp/d_item.h
index 3f74737..b236ecc 100644
--- a/include/tp/d_item.h
+++ b/include/tp/d_item.h
@@ -4,7 +4,9 @@
* @author AECX
* @bug
*/
-#pragma once
+#ifndef TP_D_ITEM_H
+#define TP_D_ITEM_H
+
#include <cstdint>
namespace libtp::tp::d_item
@@ -34,4 +36,5 @@ namespace libtp::tp::d_item
*/
void item_func_UTUWA_HEART();
}
-} // namespace libtp::tp::d_item \ No newline at end of file
+} // namespace libtp::tp::d_item
+#endif \ No newline at end of file
diff --git a/include/tp/d_item_data.h b/include/tp/d_item_data.h
index c203d02..03b25bd 100644
--- a/include/tp/d_item_data.h
+++ b/include/tp/d_item_data.h
@@ -4,14 +4,16 @@
* @author Zephiles
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_D_ITEM_DATA_H
+#define TP_D_ITEM_DATA_H
+
#include <cstdint>
-#include "d_stage.h"
+#include "tp/d_stage.h"
namespace libtp::tp::d_item_data
{
- struct ItemResource // d_item_data.h
+ struct ItemResource
{
const char* arcName;
int16_t modelResIdx;
@@ -25,7 +27,7 @@ namespace libtp::tp::d_item_data
int16_t unk_12[3];
} __attribute__( ( __packed__ ) );
- struct FieldItemRes // d_item_data.h
+ struct FieldItemRes
{
const char* arcName;
int16_t modelResIdx;
@@ -54,4 +56,5 @@ namespace libtp::tp::d_item_data
extern FieldItemRes field_item_res[255]; // 0x803ADD88 in US
extern ItemInfo item_info[255]; // 0x803AED78 in US
}
-} // namespace libtp::tp::d_item_data \ No newline at end of file
+} // namespace libtp::tp::d_item_data
+#endif \ No newline at end of file
diff --git a/include/tp/d_kankyo.h b/include/tp/d_kankyo.h
index 80d83bc..743cd81 100644
--- a/include/tp/d_kankyo.h
+++ b/include/tp/d_kankyo.h
@@ -7,7 +7,9 @@
* @author AECX
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_D_KANKYO_H
+#define TP_D_KANKYO_H
+
#include <cstdint>
namespace libtp::tp::d_kankyo
@@ -30,4 +32,5 @@ namespace libtp::tp::d_kankyo
{
extern EnvLight env_light;
}
-} // namespace libtp::tp::d_kankyo \ No newline at end of file
+} // namespace libtp::tp::d_kankyo
+#endif \ No newline at end of file
diff --git a/include/tp/d_map_path_dmap.h b/include/tp/d_map_path_dmap.h
index 6507f96..18426a3 100644
--- a/include/tp/d_map_path_dmap.h
+++ b/include/tp/d_map_path_dmap.h
@@ -4,7 +4,9 @@
* @author Zephiles
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_D_MAP_PATH_DMAP_H
+#define TP_D_MAP_PATH_DMAP_H
+
#include <cstdint>
namespace libtp::tp::d_map_path_dmap
@@ -26,4 +28,5 @@ namespace libtp::tp::d_map_path_dmap
*/
uint32_t getMapPlayerAngleY();
}
-} // namespace libtp::tp::d_map_path_dmap \ No newline at end of file
+} // namespace libtp::tp::d_map_path_dmap
+#endif \ No newline at end of file
diff --git a/include/tp/d_menu_collect.h b/include/tp/d_menu_collect.h
index 6eb0919..2c74b76 100644
--- a/include/tp/d_menu_collect.h
+++ b/include/tp/d_menu_collect.h
@@ -4,7 +4,9 @@
* @author AECX
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_D_MENU_COLLECT_H
+#define TP_D_MENU_COLLECT_H
+
namespace libtp::tp::d_menu_collect
{
extern "C"
@@ -16,4 +18,5 @@ namespace libtp::tp::d_menu_collect
*/
void setWalletMaxNum();
}
-} // namespace libtp::tp::d_menu_collect \ No newline at end of file
+} // namespace libtp::tp::d_menu_collect
+#endif \ No newline at end of file
diff --git a/include/tp/d_meter2_info.h b/include/tp/d_meter2_info.h
index 13826cf..618100c 100644
--- a/include/tp/d_meter2_info.h
+++ b/include/tp/d_meter2_info.h
@@ -5,8 +5,10 @@
* @author Lunar Soap
* @bug No known bugs.
*/
-#pragma once
-#include "d_com_inf_game.h"
+#ifndef TP_D_METER2_INFO_H
+#define TP_D_METER2_INFO_H
+
+#include "tp/d_com_inf_game.h"
namespace libtp::tp::d_meter2_info
{
@@ -27,4 +29,5 @@ namespace libtp::tp::d_meter2_info
extern void* wZButtonPtr;
extern G_Meter2_Info g_meter2_info;
}
-} // namespace libtp::tp::d_meter2_info \ No newline at end of file
+} // namespace libtp::tp::d_meter2_info
+#endif \ No newline at end of file
diff --git a/include/tp/d_msg_object.h b/include/tp/d_msg_object.h
index 386427a..6853545 100644
--- a/include/tp/d_msg_object.h
+++ b/include/tp/d_msg_object.h
@@ -5,7 +5,9 @@
* @author Zephiles
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_D_MSG_OBJECT_H
+#define TP_D_MSG_OBJECT_H
+
#include <cstdint>
namespace libtp::tp::d_msg_object
@@ -39,4 +41,5 @@ namespace libtp::tp::d_msg_object
*/
void setMessageIndex( uint32_t param_1, uint32_t itemIndex, bool param_3 );
}
-} // namespace libtp::tp::d_msg_object \ No newline at end of file
+} // namespace libtp::tp::d_msg_object
+#endif \ No newline at end of file
diff --git a/include/tp/d_save.h b/include/tp/d_save.h
index cfb78fd..933c68d 100644
--- a/include/tp/d_save.h
+++ b/include/tp/d_save.h
@@ -4,7 +4,9 @@
* @author AECX
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_D_STAGE_H
+#define TP_D_STAGE_H
+
#include <cstdint>
#include "d_com_inf_game.h"
@@ -65,4 +67,5 @@ namespace libtp::tp::d_save
*/
void offEventBit( uint16_t flag );
}
-} // namespace libtp::tp::d_save \ No newline at end of file
+} // namespace libtp::tp::d_save
+#endif \ No newline at end of file
diff --git a/include/tp/d_stage.h b/include/tp/d_stage.h
index 037e45d..d32ca73 100644
--- a/include/tp/d_stage.h
+++ b/include/tp/d_stage.h
@@ -6,10 +6,12 @@
* @author Lunar Soap
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_D_STAGE_H
+#define TP_D_STAGE_H
+
#include <cstdint>
-#include "dzx.h"
+#include "tp/dzx.h"
namespace libtp::tp::d_stage
{
@@ -73,4 +75,5 @@ namespace libtp::tp::d_stage
*/
extern void* mStatus_roomControl;
}
-} // namespace libtp::tp::d_stage \ No newline at end of file
+} // namespace libtp::tp::d_stage
+#endif \ No newline at end of file
diff --git a/include/tp/dzx.h b/include/tp/dzx.h
index 3e81cea..41ffc23 100644
--- a/include/tp/dzx.h
+++ b/include/tp/dzx.h
@@ -6,7 +6,9 @@
* @author Lunar Soap
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_DZX_H
+#define TP_DZX_H
+
#include <cstdint>
namespace libtp::tp::dzx
@@ -92,4 +94,5 @@ namespace libtp::tp::dzx
static_assert( sizeof( TRES ) == 0x20 );
static_assert( sizeof( ITEM ) == 0x20 );
static_assert( sizeof( ChunkTypeInfo ) == 0xC );
-} // namespace libtp::tp::dzx \ No newline at end of file
+} // namespace libtp::tp::dzx
+#endif \ No newline at end of file
diff --git a/include/tp/evt_control.h b/include/tp/evt_control.h
index d0cdb8f..de08e05 100644
--- a/include/tp/evt_control.h
+++ b/include/tp/evt_control.h
@@ -5,7 +5,9 @@
* @author dragonbane0
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_EVT_CONTROL_H
+#define TP_EVT_CONTROL_H
+
#include <cstdint>
namespace libtp::tp::evt_control
@@ -32,4 +34,5 @@ namespace libtp::tp::evt_control
csSkipFunction defaultSkipStb;
}
-} // namespace libtp::tp::evt_control \ No newline at end of file
+} // namespace libtp::tp::evt_control
+#endif \ No newline at end of file
diff --git a/include/tp/f_ap_game.h b/include/tp/f_ap_game.h
index 5f3765f..405edc5 100644
--- a/include/tp/f_ap_game.h
+++ b/include/tp/f_ap_game.h
@@ -4,7 +4,9 @@
* @author Zephiles
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_F_AP_GAME_H
+#define TP_F_AP_GAME_H
+
namespace libtp::tp::f_ap_game
{
extern "C"
@@ -14,4 +16,5 @@ namespace libtp::tp::f_ap_game
*/
void fapGm_Execute();
}
-} // namespace libtp::tp::f_ap_game \ No newline at end of file
+} // namespace libtp::tp::f_ap_game
+#endif \ No newline at end of file
diff --git a/include/tp/f_op_actor_mng.h b/include/tp/f_op_actor_mng.h
index 060149e..82549e6 100644
--- a/include/tp/f_op_actor_mng.h
+++ b/include/tp/f_op_actor_mng.h
@@ -4,7 +4,9 @@
* @author AECX
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_F_OP_ACTOR_MNG_H
+#define TP_F_OP_ACTOR_MNG_H
+
#include <cstdint>
#include "tp/dzx.h"
@@ -156,4 +158,5 @@ namespace libtp::tp::f_op_actor_mng
const float scale[3],
int32_t itemAction );
}
-} // namespace libtp::tp::f_op_actor_mng \ No newline at end of file
+} // namespace libtp::tp::f_op_actor_mng
+#endif \ No newline at end of file
diff --git a/include/tp/f_op_scene_req.h b/include/tp/f_op_scene_req.h
index 02daf3e..244823e 100644
--- a/include/tp/f_op_scene_req.h
+++ b/include/tp/f_op_scene_req.h
@@ -4,7 +4,9 @@
* @author AECX
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_F_OP_SCENE_REQ_H
+#define TP_F_OP_SCENE_REQ_H
+
#include <cstdint>
namespace libtp::tp::f_op_scene_req
@@ -14,4 +16,5 @@ namespace libtp::tp::f_op_scene_req
extern bool freezeActors; // Freezes all actors
extern int32_t isLoading; // Current loading status
}
-} // namespace libtp::tp::f_op_scene_req \ No newline at end of file
+} // namespace libtp::tp::f_op_scene_req
+#endif \ No newline at end of file
diff --git a/include/tp/m_do_controller_pad.h b/include/tp/m_do_controller_pad.h
index 0c5f777..7fa9660 100644
--- a/include/tp/m_do_controller_pad.h
+++ b/include/tp/m_do_controller_pad.h
@@ -5,7 +5,9 @@
* @author AECX
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_M_DO_CONTROLLER_PAD_H
+#define TP_M_DO_CONTROLLER_PAD_H
+
#include <cstdint>
namespace libtp::tp::m_do_controller_pad
@@ -54,4 +56,5 @@ namespace libtp::tp::m_do_controller_pad
{
extern CPadInfo cpadInfo;
}
-} // namespace libtp::tp::m_do_controller_pad \ No newline at end of file
+} // namespace libtp::tp::m_do_controller_pad
+#endif \ No newline at end of file
diff --git a/include/tp/m_do_ext.h b/include/tp/m_do_ext.h
index ef6596f..529a226 100644
--- a/include/tp/m_do_ext.h
+++ b/include/tp/m_do_ext.h
@@ -4,11 +4,14 @@
* @author Zephiles
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_M_DO_EXT_H
+#define TP_M_DO_EXT_H
+
namespace libtp::tp::m_Do_ext
{
extern "C"
{
extern void* archiveHeap; // Archive heap pointer
}
-} // namespace libtp::tp::m_Do_ext \ No newline at end of file
+} // namespace libtp::tp::m_Do_ext
+#endif \ No newline at end of file
diff --git a/include/tp/resource.h b/include/tp/resource.h
index 7ee2ecb..7172126 100644
--- a/include/tp/resource.h
+++ b/include/tp/resource.h
@@ -5,7 +5,9 @@
* @author Lunar Soap
* @bug No known bugs.
*/
-#pragma once
+#ifndef TP_RESOURCE_H
+#define TP_RESOURCE_H
+
namespace libtp::tp::resource
{
extern "C"
@@ -37,4 +39,5 @@ namespace libtp::tp::resource
#define MSG_COLOR_YELLOW "\x04"
#define MSG_COLOR_PURPLE "\x06"
#define MSG_COLOR_ORANGE "\x08"
-} // namespace libtp::tp::resource \ No newline at end of file
+} // namespace libtp::tp::resource
+#endif \ No newline at end of file