mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-05 09:05:26 -04:00
eed14acdc6
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.
23 lines
692 B
C++
23 lines
692 B
C++
/**
|
|
* f_pc_profile.cpp
|
|
* Framework - Process Profile
|
|
*/
|
|
|
|
#include "f_pc/f_pc_profile.h"
|
|
|
|
|
|
#ifndef __MWERKS__
|
|
// Forward declare the static list from f_pc_profile_lst.cpp
|
|
DUSK_GAME_EXTERN process_profile_definition DUSK_CONST* DUSK_CONST g_fpcPfLst_ProfileList[];
|
|
// On PC: Direct pointer to static array
|
|
DUSK_GAME_DATA process_profile_definition DUSK_CONST* DUSK_CONST* DUSK_CONST g_fpcPf_ProfileList_p = g_fpcPfLst_ProfileList;
|
|
#else
|
|
// On Console: Pointer initialized by REL module prolog
|
|
process_profile_definition** g_fpcPf_ProfileList_p;
|
|
#endif
|
|
|
|
process_profile_definition DUSK_CONST* fpcPf_Get(s16 i_profname) {
|
|
int index = i_profname;
|
|
return g_fpcPf_ProfileList_p[index];
|
|
}
|