mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 23:42:30 +00:00
(RARCH_CONSOLE) When we encounter a CORE executable - rename,
save and exit app.
This commit is contained in:
parent
8f2ed9a405
commit
69aa79b1e9
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user