(PSP) allow game loading form the commandline (for use with pspsh)

This commit is contained in:
aliaspider 2014-02-17 14:31:33 +01:00
parent 650adef8da
commit 566696223f

View File

@ -93,7 +93,7 @@ static void system_init(void *data)
//initialize debug screen
pspDebugScreenInit();
pspDebugScreenClear();
setup_callback();
pspFpuSetEnable(0);//disable FPU exceptions
@ -117,8 +117,10 @@ static int psp_process_args(int argc, char *argv[], void *args)
strlcpy(g_extern.fullpath, path, sizeof(g_extern.fullpath));
g_extern.lifecycle_state |= (1ULL << MODE_LOAD_GAME);
#else
strlcpy(g_extern.fullpath, argv[1], sizeof(g_extern.fullpath));
g_extern.lifecycle_state |= (1ULL << MODE_LOAD_GAME);
if (argv[1]&&(argv[1][0])){
strlcpy(g_extern.fullpath, argv[1], sizeof(g_extern.fullpath));
g_extern.lifecycle_state |= (1ULL << MODE_LOAD_GAME);
}
#endif
}