mirror of
https://github.com/RSDKModding/Sonic-Mania-Decompilation.git
synced 2024-11-23 05:49:56 +00:00
ModAPI: Fix StateMachine function pointer types
Linked with GameAPI fixes when compiling with recent GCC versions. https://github.com/RSDKModding/RSDKv5-GameAPI/issues/12
This commit is contained in:
parent
7169594184
commit
bc68318a73
@ -1251,9 +1251,9 @@ typedef struct {
|
||||
void (*StateMachineRun)(void (*state)(void));
|
||||
void (*RegisterStateHook)(void (*state)(void), bool32 (*hook)(bool32 skippedState), bool32 priority);
|
||||
// runs all high priority state hooks hooked to the address of 'state', returns if the main state should be skipped or not
|
||||
bool32 (*HandleRunState_HighPriority)(void *state);
|
||||
bool32 (*HandleRunState_HighPriority)(void (*state)(void));
|
||||
// runs all low priority state hooks hooked to the address of 'state'
|
||||
void (*HandleRunState_LowPriority)(void *state, bool32 skipState);
|
||||
void (*HandleRunState_LowPriority)(void (*state)(void), bool32 skipState);
|
||||
|
||||
#if RETRO_MOD_LOADER_VER >= 2
|
||||
// Mod Settings (Part 2)
|
||||
|
Loading…
Reference in New Issue
Block a user