From 9d75f910f15a172c77ecdf2f02484bc3225bb4ec Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 16 Sep 2017 23:47:01 +0200 Subject: [PATCH] add OSScreenShutdown --- os_functions.c | 2 ++ os_functions.h | 1 + 2 files changed, 3 insertions(+) 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);