mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +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];
|
char core_exe_path[256];
|
||||||
snprintf(core_exe_path, sizeof(core_exe_path), "%sCORE%s", path_prefix, DEFAULT_EXE_EXT);
|
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 (path_file_exists(core_exe_path))
|
||||||
if (libretro_install_core(path_prefix, 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
|
#endif
|
||||||
|
|
||||||
#ifdef GEKKO
|
#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);
|
snprintf((char*)ptr.Data, sizeof(ptr.Data), "%s", g_extern.fullpath);
|
||||||
XLaunchNewImage(path, &ptr);
|
XLaunchNewImage(path, &ptr);
|
||||||
}
|
}
|
||||||
XLaunchNewImage(path, NULL);
|
else
|
||||||
|
XLaunchNewImage(path, NULL);
|
||||||
#else
|
#else
|
||||||
XLaunchNewImage(path, NULL);
|
XLaunchNewImage(path, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user