mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-03 16:31:56 -04:00
Annotate all data with DUSK_GAME_DATA (#2214)
The hope of auto-importing data via lld MinGW + pseudo_reloc is now dead thanks to ARM64, so I just wrote a script to go annotate every exported data symbol in the game instead.
This commit is contained in:
@@ -57,6 +57,6 @@ int fpcBs_Delete(base_process_class* i_proc);
|
||||
base_process_class* fpcBs_Create(s16 i_profname, fpc_ProcID i_procID, void* i_append);
|
||||
int fpcBs_SubCreate(base_process_class* i_proc);
|
||||
|
||||
extern int g_fpcBs_type;
|
||||
DUSK_GAME_EXTERN int g_fpcBs_type;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -13,6 +13,6 @@ void fpcCtTg_ToCreateQ(create_tag* i_createTag);
|
||||
void fpcCtTg_CreateQTo(create_tag* i_createTag);
|
||||
int fpcCtTg_Init(create_tag* i_createTag, void* i_data);
|
||||
|
||||
extern node_list_class g_fpcCtTg_Queue;
|
||||
DUSK_GAME_EXTERN node_list_class g_fpcCtTg_Queue;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -25,6 +25,6 @@ void fpcDtTg_DeleteQTo(delete_tag_class* i_deleteTag);
|
||||
int fpcDtTg_Do(delete_tag_class* i_deleteTag, delete_tag_func i_func);
|
||||
int fpcDtTg_Init(delete_tag_class* i_deleteTag, void* i_data);
|
||||
|
||||
extern node_list_class g_fpcDtTg_Queue;
|
||||
DUSK_GAME_EXTERN node_list_class g_fpcDtTg_Queue;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -43,7 +43,7 @@ int fpcLf_IsDelete(leafdraw_class* i_leaf);
|
||||
int fpcLf_Delete(leafdraw_class* i_leaf);
|
||||
int fpcLf_Create(leafdraw_class* i_leaf);
|
||||
|
||||
extern int g_fpcLf_type;
|
||||
extern leafdraw_method_class DUSK_CONST g_fpcLf_Method;
|
||||
DUSK_GAME_EXTERN int g_fpcLf_type;
|
||||
DUSK_GAME_EXTERN leafdraw_method_class DUSK_CONST g_fpcLf_Method;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
|
||||
void fpcLn_Create();
|
||||
|
||||
extern node_lists_tree_class g_fpcLn_Queue;
|
||||
DUSK_GAME_EXTERN node_lists_tree_class g_fpcLn_Queue;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -35,7 +35,7 @@ int fpcNd_IsDelete(process_node_class* pProcNode);
|
||||
int fpcNd_Delete(process_node_class* pProcNode);
|
||||
int fpcNd_Create(process_node_class* pProcNode);
|
||||
|
||||
extern int g_fpcNd_type;
|
||||
extern nodedraw_method_class g_fpcNd_Method;
|
||||
DUSK_GAME_EXTERN int g_fpcNd_type;
|
||||
DUSK_GAME_EXTERN nodedraw_method_class g_fpcNd_Method;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "global.h"
|
||||
|
||||
// Putting const on these profiles make them have internal linkage. Make sure they're extern!
|
||||
#define DUSK_PROFILE IF_DUSK(extern)
|
||||
#define DUSK_PROFILE IF_DUSK(extern) DUSK_GAME_DATA
|
||||
|
||||
typedef struct nodedraw_method_class nodedraw_method_class;
|
||||
typedef struct leafdraw_method_class leafdraw_method_class;
|
||||
@@ -27,6 +27,6 @@ typedef struct process_profile_definition {
|
||||
|
||||
struct leaf_process_profile_definition;
|
||||
process_profile_definition DUSK_CONST* fpcPf_Get(s16 i_profname);
|
||||
extern process_profile_definition DUSK_CONST* DUSK_CONST* DUSK_CONST g_fpcPf_ProfileList_p;
|
||||
DUSK_GAME_EXTERN process_profile_definition DUSK_CONST* DUSK_CONST* DUSK_CONST g_fpcPf_ProfileList_p;
|
||||
|
||||
#endif
|
||||
|
||||
+1585
-1585
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user