diff --git a/os_functions.c b/os_functions.c index 73737e2..d763a83 100644 --- a/os_functions.c +++ b/os_functions.c @@ -94,6 +94,7 @@ EXPORT_DECL(s32, __os_snprintf, char* s, s32 n, const char * format, ...); EXPORT_DECL(s32 *, __gh_errno_ptr, void); EXPORT_DECL(void, OSScreenInit, void); +EXPORT_DECL(void, OSScreenShutdown, void); EXPORT_DECL(u32, OSScreenGetBufferSizeEx, u32 bufferNum); EXPORT_DECL(s32, OSScreenSetBufferEx, u32 bufferNum, void * addr); EXPORT_DECL(s32, OSScreenClearBufferEx, u32 bufferNum, u32 temp); @@ -244,6 +245,7 @@ void InitOSFunctionPointers(void) OSDynLoad_FindExport(coreinit_handle, 0, "_Exit", &__Exit); OS_FIND_EXPORT(coreinit_handle, OSScreenInit); + OS_FIND_EXPORT(coreinit_handle, OSScreenShutdown); OS_FIND_EXPORT(coreinit_handle, OSScreenGetBufferSizeEx); OS_FIND_EXPORT(coreinit_handle, OSScreenSetBufferEx); OS_FIND_EXPORT(coreinit_handle, OSScreenClearBufferEx); diff --git a/os_functions.h b/os_functions.h index 859fd85..4f1bbcb 100644 --- a/os_functions.h +++ b/os_functions.h @@ -132,6 +132,7 @@ extern s32 (* __os_snprintf)(char* s, s32 n, const char * format, ...); extern s32 * (* __gh_errno_ptr)(void); extern void (*OSScreenInit)(void); +extern void (*OSScreenShutdown)(void); extern u32 (*OSScreenGetBufferSizeEx)(u32 bufferNum); extern s32 (*OSScreenSetBufferEx)(u32 bufferNum, void * addr); extern s32 (*OSScreenClearBufferEx)(u32 bufferNum, u32 temp);