(RARCH_CONSOLE) When we encounter a CORE executable - rename,

save and exit app.
This commit is contained in:
twinaphex 2013-04-29 19:37:02 +02:00
parent 8f2ed9a405
commit 69aa79b1e9
2 changed files with 4 additions and 3 deletions

View File

@ -115,10 +115,10 @@ int rarch_main(int argc, char *argv[])
char core_exe_path[256];
snprintf(core_exe_path, sizeof(core_exe_path), "%sCORE%s", path_prefix, DEFAULT_EXE_EXT);
// Save new libretro core path to config file
// Save new libretro core path to config file and exit
if (path_file_exists(core_exe_path))
if (libretro_install_core(path_prefix, core_exe_path))
config_save_file(g_extern.config_path);
g_extern.system.shutdown = true;
#endif
#ifdef GEKKO

View File

@ -36,7 +36,8 @@ static void rarch_console_exec(const char *path, bool should_load_game)
snprintf((char*)ptr.Data, sizeof(ptr.Data), "%s", g_extern.fullpath);
XLaunchNewImage(path, &ptr);
}
XLaunchNewImage(path, NULL);
else
XLaunchNewImage(path, NULL);
#else
XLaunchNewImage(path, NULL);
#endif