add _SYSLaunchMenuWithCheckingAccount and SYSLaunchSettings

This commit is contained in:
admin 2017-09-16 23:45:37 +02:00
parent ac995a77c0
commit e2482f9e32
3 changed files with 10 additions and 5 deletions

View File

@ -113,7 +113,6 @@ typedef enum OSExceptionType
OS_EXCEPTION_TYPE_ICI = 14, OS_EXCEPTION_TYPE_ICI = 14,
} OSExceptionType; } OSExceptionType;
typedef int (*ThreadFunc)(int argc, void *argv); typedef int (*ThreadFunc)(int argc, void *argv);
struct OSThread_ { struct OSThread_ {
@ -129,12 +128,12 @@ struct OSThread_ {
char _[0x394 - 0x330]; char _[0x394 - 0x330];
void *stackBase; void *stackBase;
void *stackEnd; void *stackEnd;
ThreadFunc entryPoint; ThreadFunc entryPoint;
char _3A0[0x6A0 - 0x3A0]; char _3A0[0x6A0 - 0x3A0];
}; };
typedef struct _OSCalendarTime { typedef struct _OSCalendarTime {

View File

@ -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, _SYSLaunchTitleByPathFromLauncher, const char* path, s32 len, s32 zero);
EXPORT_DECL(s32, SYSRelaunchTitle, s32 argc, char** argv); EXPORT_DECL(s32, SYSRelaunchTitle, s32 argc, char** argv);
EXPORT_DECL(s32, SYSLaunchMenu, void); EXPORT_DECL(s32, SYSLaunchMenu, void);
EXPORT_DECL(s32, _SYSLaunchMenuWithCheckingAccount, unsigned char slot);
EXPORT_DECL(s32, SYSCheckTitleExists, u64 titleId); EXPORT_DECL(s32, SYSCheckTitleExists, u64 titleId);
EXPORT_DECL(s32, SYSLaunchTitle, u64 titleId); EXPORT_DECL(s32, SYSLaunchTitle, u64 titleId);
EXPORT_DECL(s32, SYSLaunchSettings, s32 unk);
void InitAcquireSys(void) void InitAcquireSys(void)
{ {
@ -44,6 +46,8 @@ void InitSysFunctionPointers(void)
OS_FIND_EXPORT(sysapp_handle, _SYSLaunchTitleByPathFromLauncher); OS_FIND_EXPORT(sysapp_handle, _SYSLaunchTitleByPathFromLauncher);
OS_FIND_EXPORT(sysapp_handle, SYSRelaunchTitle); OS_FIND_EXPORT(sysapp_handle, SYSRelaunchTitle);
OS_FIND_EXPORT(sysapp_handle, SYSLaunchMenu); OS_FIND_EXPORT(sysapp_handle, SYSLaunchMenu);
OS_FIND_EXPORT(sysapp_handle, _SYSLaunchMenuWithCheckingAccount);
OS_FIND_EXPORT(sysapp_handle, SYSCheckTitleExists); OS_FIND_EXPORT(sysapp_handle, SYSCheckTitleExists);
OS_FIND_EXPORT(sysapp_handle, SYSLaunchTitle); OS_FIND_EXPORT(sysapp_handle, SYSLaunchTitle);
OS_FIND_EXPORT(sysapp_handle, SYSLaunchSettings);
} }

View File

@ -38,8 +38,10 @@ void InitAcquireSys(void);
extern int(*_SYSLaunchTitleByPathFromLauncher)(const char* path, s32 len, s32 zero); extern int(*_SYSLaunchTitleByPathFromLauncher)(const char* path, s32 len, s32 zero);
extern int (* SYSRelaunchTitle)(s32 argc, char** argv); extern int (* SYSRelaunchTitle)(s32 argc, char** argv);
extern int (* SYSLaunchMenu)(void); extern int (* SYSLaunchMenu)(void);
extern int (* _SYSLaunchMenuWithCheckingAccount)(unsigned char slot);
extern int (* SYSCheckTitleExists)(u64 titleId); extern int (* SYSCheckTitleExists)(u64 titleId);
extern int (* SYSLaunchTitle)(u64 titleId); extern int (* SYSLaunchTitle)(u64 titleId);
extern int (* SYSLaunchSettings)(s32 unk);
#ifdef __cplusplus #ifdef __cplusplus