diff --git a/source/os_functions.c b/source/os_functions.c index a375144..4809591 100644 --- a/source/os_functions.c +++ b/source/os_functions.c @@ -118,6 +118,8 @@ EXPORT_DECL(bool, DisassemblePPCOpcode, u32 *, char *, u32, DisasmGetSym, u32); EXPORT_DECL(void*, OSGetSymbolName, u32, u8 *, u32); EXPORT_DECL(int, OSIsDebuggerInitialized, void); +EXPORT_DECL(bool, OSGetSharedData, u32 type, u32 unk_r4, u8 *addr, u32 *size); + //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //! Memory functions //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- @@ -285,6 +287,8 @@ void InitOSFunctionPointers(void){ OS_FIND_EXPORT(coreinit_handle, DisassemblePPCOpcode); OS_FIND_EXPORT(coreinit_handle, OSGetSymbolName); OS_FIND_EXPORT(coreinit_handle, OSIsDebuggerInitialized); + + OS_FIND_EXPORT(coreinit_handle, OSGetSharedData); //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //! Thread functions //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- diff --git a/source/os_functions.h b/source/os_functions.h index bcad853..599c762 100644 --- a/source/os_functions.h +++ b/source/os_functions.h @@ -201,6 +201,8 @@ extern bool (*DisassemblePPCOpcode)(u32 *opcode, char *outputBuffer, u32 bufferS extern void *(*OSGetSymbolName)(u32 addr, u8 *symbolName, u32 nameBufSize); extern int (*OSIsDebuggerInitialized)(void); +extern bool (*OSGetSharedData)(u32 type, u32 unk_r4, u8 *addr, u32 *size); + //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //! Memory functions //!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------