diff --git a/os_functions.c b/os_functions.c index 3d74fb7..73737e2 100644 --- a/os_functions.c +++ b/os_functions.c @@ -36,6 +36,7 @@ EXPORT_DECL(s32, OSDynLoad_FindExport, u32 handle, s32 isdata, const char *symbo //! Security functions //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- EXPORT_DECL(s32, OSGetSecurityLevel, void); +EXPORT_DECL(s32, OSForceFullRelaunch, void); //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //! Thread functions @@ -54,6 +55,7 @@ EXPORT_DECL(void ,OSGetActiveThreadLink,OSThread * thread, void* link); EXPORT_DECL(u32 ,OSGetThreadAffinity,OSThread * thread); EXPORT_DECL(s32 ,OSGetThreadPriority,OSThread * thread); EXPORT_DECL(void ,OSSetThreadName,OSThread * thread, const char *name); +EXPORT_DECL(s32, OSGetCoreId, void); EXPORT_DECL(void, OSSleepTicks, u64 ticks); EXPORT_DECL(u64, OSGetTick, void); EXPORT_DECL(u64, OSGetTime, void); @@ -222,6 +224,7 @@ void InitOSFunctionPointers(void) //! Security functions //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- OS_FIND_EXPORT(coreinit_handle, OSGetSecurityLevel); + OS_FIND_EXPORT(coreinit_handle, OSForceFullRelaunch); //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //! System functions //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- @@ -265,6 +268,7 @@ void InitOSFunctionPointers(void) OS_FIND_EXPORT(coreinit_handle, OSGetThreadAffinity); OS_FIND_EXPORT(coreinit_handle, OSGetThreadPriority); OS_FIND_EXPORT(coreinit_handle, OSSetThreadName); + OS_FIND_EXPORT(coreinit_handle, OSGetCoreId); OS_FIND_EXPORT(coreinit_handle, OSSleepTicks); OS_FIND_EXPORT(coreinit_handle, OSGetTick); diff --git a/os_functions.h b/os_functions.h index a94b08a..859fd85 100644 --- a/os_functions.h +++ b/os_functions.h @@ -75,6 +75,7 @@ extern s32 (* OSDynLoad_FindExport)(u32 handle, s32 isdata, const char *symbol, //! Security functions //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- extern s32 (* OSGetSecurityLevel)(void); +extern s32 (* OSForceFullRelaunch)(void); //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //! Thread functions @@ -94,6 +95,7 @@ extern void (* OSGetActiveThreadLink)(OSThread * thread, void* link); extern u32 (* OSGetThreadAffinity)(OSThread * thread); extern s32 (* OSGetThreadPriority)(OSThread * thread); extern void (* OSSetThreadName)(OSThread * thread, const char *name); +extern s32 (* OSGetCoreId)(void); extern void (* OSSleepTicks)(u64 ticks); extern u64 (* OSGetTick)(void);