From 7c45571eec3f5bc8bb0137a3373988e98f15ce97 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 18 Feb 2018 21:42:02 +0100 Subject: [PATCH] Added OSIsHomeButtonMenuEnabled --- source/os_functions.c | 2 ++ source/os_functions.h | 1 + 2 files changed, 3 insertions(+) diff --git a/source/os_functions.c b/source/os_functions.c index 96bba5c..33272c7 100644 --- a/source/os_functions.c +++ b/source/os_functions.c @@ -164,6 +164,7 @@ EXPORT_DECL(void, addr_PrepareTitle_hook, void); //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- EXPORT_DECL(void, DCInvalidateRange, void *buffer, u32 length); EXPORT_DECL(s32, OSDynLoad_GetModuleName, s32 handle, char *name_buffer, s32 *name_buffer_size); +EXPORT_DECL(s32, OSIsHomeButtonMenuEnabled, void); //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //! Energy Saver functions @@ -352,6 +353,7 @@ void InitOSFunctionPointers(void){ //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- OS_FIND_EXPORT(coreinit_handle, DCInvalidateRange); OS_FIND_EXPORT(coreinit_handle, OSDynLoad_GetModuleName); + OS_FIND_EXPORT(coreinit_handle, OSIsHomeButtonMenuEnabled); //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //! Energy Saver functions diff --git a/source/os_functions.h b/source/os_functions.h index d53146c..8869bca 100644 --- a/source/os_functions.h +++ b/source/os_functions.h @@ -247,6 +247,7 @@ extern void (* addr_PrepareTitle_hook)(void); //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- extern void (*DCInvalidateRange)(void *buffer, u32 length); extern s32 (*OSDynLoad_GetModuleName)(s32 handle, char *name_buffer, s32 *name_buffer_size); +extern s32 (*OSIsHomeButtonMenuEnabled) (void); //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //! Energy Saver functions