mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-11 18:41:14 +00:00
load config app after initializing ini on vita
This commit is contained in:
parent
b1d1f47b48
commit
7c362422ff
@ -300,22 +300,6 @@ void IsleApp::SetupVideoFlags(
|
||||
|
||||
SDL_AppResult SDL_AppInit(void** appstate, int argc, char** argv)
|
||||
{
|
||||
#ifdef __vita__
|
||||
SceAppUtilInitParam appUtilInitParam = {0};
|
||||
SceAppUtilBootParam appUtilBootParam = {0};
|
||||
sceAppUtilInit(&appUtilInitParam, &appUtilBootParam);
|
||||
SceAppUtilAppEventParam eventParam = {0};
|
||||
sceAppUtilReceiveAppEvent(&eventParam);
|
||||
if (eventParam.type == 0x05) {
|
||||
char buffer[2048];
|
||||
sceAppUtilAppEventParseLiveArea(&eventParam, buffer);
|
||||
if (strstr(buffer, "-config")) {
|
||||
sceClibPrintf("Loading Config App.\n");
|
||||
sceAppMgrLoadExec("app0:/isle-config.self", NULL, NULL);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
*appstate = NULL;
|
||||
|
||||
SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0");
|
||||
@ -340,6 +324,23 @@ SDL_AppResult SDL_AppInit(void** appstate, int argc, char** argv)
|
||||
// Create global app instance
|
||||
g_isle = new IsleApp();
|
||||
|
||||
#ifdef __vita__
|
||||
SceAppUtilInitParam appUtilInitParam = {0};
|
||||
SceAppUtilBootParam appUtilBootParam = {0};
|
||||
sceAppUtilInit(&appUtilInitParam, &appUtilBootParam);
|
||||
SceAppUtilAppEventParam eventParam = {0};
|
||||
sceAppUtilReceiveAppEvent(&eventParam);
|
||||
if (eventParam.type == 0x05) {
|
||||
g_isle->LoadConfig();
|
||||
char buffer[2048];
|
||||
sceAppUtilAppEventParseLiveArea(&eventParam, buffer);
|
||||
if (strstr(buffer, "-config")) {
|
||||
sceClibPrintf("Loading Config App.\n");
|
||||
sceAppMgrLoadExec("app0:/isle-config.self", NULL, NULL);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
switch (g_isle->ParseArguments(argc, argv)) {
|
||||
case SDL_APP_FAILURE:
|
||||
Any_ShowSimpleMessageBox(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user