From aecfb5a1e8bfaee9fd34ba361123e0ddfdfebca8 Mon Sep 17 00:00:00 2001 From: dimok789 Date: Tue, 10 May 2016 22:53:34 +0200 Subject: [PATCH] added launch title --- os_functions.c | 2 +- sys_functions.c | 4 +++- sys_functions.h | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/os_functions.c b/os_functions.c index f261a23..f0cbef7 100644 --- a/os_functions.c +++ b/os_functions.c @@ -289,4 +289,4 @@ void InitOSFunctionPointers(void) { OSFatal("Missing all OS specific addresses."); } -} \ No newline at end of file +} diff --git a/sys_functions.c b/sys_functions.c index 5ebefdf..97489d4 100644 --- a/sys_functions.c +++ b/sys_functions.c @@ -25,10 +25,11 @@ unsigned int sysapp_handle __attribute__((section(".data"))) = 0; -EXPORT_DECL(void, _SYSLaunchTitleByPathFromLauncher, const char* path, int len, int zero); +EXPORT_DECL(int, _SYSLaunchTitleByPathFromLauncher, const char* path, int len, int zero); EXPORT_DECL(int, SYSRelaunchTitle, int argc, char** argv); EXPORT_DECL(int, SYSLaunchMenu, void); EXPORT_DECL(int, SYSCheckTitleExists, u64 titleId); +EXPORT_DECL(int, SYSLaunchTitle, u64 titleId); void InitAcquireSys(void) { @@ -44,5 +45,6 @@ void InitSysFunctionPointers(void) OS_FIND_EXPORT(sysapp_handle, SYSRelaunchTitle); OS_FIND_EXPORT(sysapp_handle, SYSLaunchMenu); OS_FIND_EXPORT(sysapp_handle, SYSCheckTitleExists); + OS_FIND_EXPORT(sysapp_handle, SYSLaunchTitle); } diff --git a/sys_functions.h b/sys_functions.h index 0c0d78c..08ca21b 100644 --- a/sys_functions.h +++ b/sys_functions.h @@ -33,10 +33,11 @@ extern unsigned int sysapp_handle; void InitSysFunctionPointers(void); void InitAcquireSys(void); -extern void(*_SYSLaunchTitleByPathFromLauncher)(const char* path, int len, int zero); +extern int(*_SYSLaunchTitleByPathFromLauncher)(const char* path, int len, int zero); extern int (* SYSRelaunchTitle)(int argc, char** argv); extern int (* SYSLaunchMenu)(void); extern int (* SYSCheckTitleExists)(u64 titleId); +extern int (* SYSLaunchTitle)(u64 titleId); #ifdef __cplusplus