mirror of
https://github.com/wiiu-env/AutobootModule.git
synced 2024-11-18 00:59:15 +01:00
Fix loading the Transfer App
This commit is contained in:
parent
b2ae87ae1f
commit
b5c007d921
@ -7,6 +7,7 @@
|
||||
#include "logger.h"
|
||||
#include <coreinit/debug.h>
|
||||
#include <coreinit/filesystem_fsa.h>
|
||||
#include <coreinit/title.h>
|
||||
#include <gx2/state.h>
|
||||
#include <malloc.h>
|
||||
#include <mocha/mocha.h>
|
||||
@ -14,6 +15,7 @@
|
||||
#include <sndcore2/core.h>
|
||||
#include <string>
|
||||
#include <sys/stat.h>
|
||||
#include <sysapp/launch.h>
|
||||
#include <vpad/input.h>
|
||||
|
||||
void clearScreen() {
|
||||
@ -48,6 +50,13 @@ int32_t main(int32_t argc, char **argv) {
|
||||
DEBUG_FUNCTION_LINE_ERR("AutobootModule: Failed to init RPXLoader. This can be ignored when not running Aroma. Error %s [%d]", RPXLoader_GetStatusStr(error3), error3);
|
||||
}
|
||||
|
||||
// If we are in System Transfer context we need to restart the app to actually
|
||||
if (OSGetTitleID() == 0x0005001010062000L || OSGetTitleID() == 0x0005001010062100L || OSGetTitleID() == 0x0005001010062200L) {
|
||||
_SYSLaunchTitleWithStdArgsInNoSplash(OSGetTitleID(), nullptr);
|
||||
deinitLogging();
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (launchQuickStartTitle()) {
|
||||
deinitLogging();
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user