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:
Mefiresu 2024-07-09 23:03:41 +02:00
parent 7169594184
commit bc68318a73

View File

@ -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)