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:
Luke Street
2026-07-14 13:49:21 -06:00
committed by GitHub
parent f5d30a886d
commit eed14acdc6
843 changed files with 4817 additions and 4821 deletions
@@ -27,7 +27,7 @@ public:
OSThread* getThread() const { return mThread; }
void setThread(OSThread* thread) { mThread = thread; }
static JSUList<JFWAlarm> sList;
static DUSK_GAME_DATA JSUList<JFWAlarm> sList;
public:
/* 0x28 */ OSThread* mThread;
@@ -108,7 +108,7 @@ public:
int getEfbHeight() const { return JUTVideo::getManager()->getEfbHeight(); }
JUTXfb* getXfbManager() const { return mXfbManager; }
static JFWDisplay* sManager;
static DUSK_GAME_DATA JFWDisplay* sManager;
private:
/* 0x04 */ JUTFader* mFader;
@@ -18,17 +18,17 @@ struct ResFONT;
*/
struct JFWSystem {
struct CSetUpParam {
static s32 maxStdHeaps;
static u32 sysHeapSize;
static u32 fifoBufSize;
static u32 aramAudioBufSize;
static u32 aramGraphBufSize;
static s32 streamPriority;
static s32 decompPriority;
static s32 aPiecePriority;
static ResFONT* systemFontRes;
static const GXRenderModeObj* renderMode;
static u32 exConsoleBufferSize;
static DUSK_GAME_DATA s32 maxStdHeaps;
static DUSK_GAME_DATA u32 sysHeapSize;
static DUSK_GAME_DATA u32 fifoBufSize;
static DUSK_GAME_DATA u32 aramAudioBufSize;
static DUSK_GAME_DATA u32 aramGraphBufSize;
static DUSK_GAME_DATA s32 streamPriority;
static DUSK_GAME_DATA s32 decompPriority;
static DUSK_GAME_DATA s32 aPiecePriority;
static DUSK_GAME_DATA ResFONT* systemFontRes;
static DUSK_GAME_DATA const GXRenderModeObj* renderMode;
static DUSK_GAME_DATA u32 exConsoleBufferSize;
};
static void firstInit();
@@ -67,14 +67,14 @@ struct JFWSystem {
CSetUpParam::renderMode = p_modeObj;
}
static JKRExpHeap* rootHeap;
static JKRExpHeap* systemHeap;
static JKRThread* mainThread;
static JUTDbPrint* debugPrint;
static JUTResFont* systemFont;
static JUTConsoleManager* systemConsoleManager;
static JUTConsole* systemConsole;
static bool sInitCalled;
static DUSK_GAME_DATA JKRExpHeap* rootHeap;
static DUSK_GAME_DATA JKRExpHeap* systemHeap;
static DUSK_GAME_DATA JKRThread* mainThread;
static DUSK_GAME_DATA JUTDbPrint* debugPrint;
static DUSK_GAME_DATA JUTResFont* systemFont;
static DUSK_GAME_DATA JUTConsoleManager* systemConsoleManager;
static DUSK_GAME_DATA JUTConsole* systemConsole;
static DUSK_GAME_DATA bool sInitCalled;
};
#endif /* JFWSYSTEM_H */