From e2482f9e322b174cfb1b1336720d0724e81ce455 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 16 Sep 2017 23:45:37 +0200 Subject: [PATCH] add _SYSLaunchMenuWithCheckingAccount and SYSLaunchSettings --- os_types.h | 9 ++++----- sys_functions.c | 4 ++++ sys_functions.h | 2 ++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/os_types.h b/os_types.h index a600e51..d4956e7 100644 --- a/os_types.h +++ b/os_types.h @@ -113,7 +113,6 @@ typedef enum OSExceptionType OS_EXCEPTION_TYPE_ICI = 14, } OSExceptionType; - typedef int (*ThreadFunc)(int argc, void *argv); struct OSThread_ { @@ -129,12 +128,12 @@ struct OSThread_ { char _[0x394 - 0x330]; - void *stackBase; - void *stackEnd; + void *stackBase; + void *stackEnd; - ThreadFunc entryPoint; + ThreadFunc entryPoint; - char _3A0[0x6A0 - 0x3A0]; + char _3A0[0x6A0 - 0x3A0]; }; typedef struct _OSCalendarTime { diff --git a/sys_functions.c b/sys_functions.c index a4a568a..be4f281 100644 --- a/sys_functions.c +++ b/sys_functions.c @@ -28,8 +28,10 @@ u32 sysapp_handle __attribute__((section(".data"))) = 0; EXPORT_DECL(s32, _SYSLaunchTitleByPathFromLauncher, const char* path, s32 len, s32 zero); EXPORT_DECL(s32, SYSRelaunchTitle, s32 argc, char** argv); EXPORT_DECL(s32, SYSLaunchMenu, void); +EXPORT_DECL(s32, _SYSLaunchMenuWithCheckingAccount, unsigned char slot); EXPORT_DECL(s32, SYSCheckTitleExists, u64 titleId); EXPORT_DECL(s32, SYSLaunchTitle, u64 titleId); +EXPORT_DECL(s32, SYSLaunchSettings, s32 unk); void InitAcquireSys(void) { @@ -44,6 +46,8 @@ void InitSysFunctionPointers(void) OS_FIND_EXPORT(sysapp_handle, _SYSLaunchTitleByPathFromLauncher); OS_FIND_EXPORT(sysapp_handle, SYSRelaunchTitle); OS_FIND_EXPORT(sysapp_handle, SYSLaunchMenu); + OS_FIND_EXPORT(sysapp_handle, _SYSLaunchMenuWithCheckingAccount); OS_FIND_EXPORT(sysapp_handle, SYSCheckTitleExists); OS_FIND_EXPORT(sysapp_handle, SYSLaunchTitle); + OS_FIND_EXPORT(sysapp_handle, SYSLaunchSettings); } diff --git a/sys_functions.h b/sys_functions.h index e448410..56ebe87 100644 --- a/sys_functions.h +++ b/sys_functions.h @@ -38,8 +38,10 @@ void InitAcquireSys(void); extern int(*_SYSLaunchTitleByPathFromLauncher)(const char* path, s32 len, s32 zero); extern int (* SYSRelaunchTitle)(s32 argc, char** argv); extern int (* SYSLaunchMenu)(void); +extern int (* _SYSLaunchMenuWithCheckingAccount)(unsigned char slot); extern int (* SYSCheckTitleExists)(u64 titleId); extern int (* SYSLaunchTitle)(u64 titleId); +extern int (* SYSLaunchSettings)(s32 unk); #ifdef __cplusplus