From 69aa79b1e974e23c642cb79fef263d83e3e1a34e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 29 Apr 2013 19:37:02 +0200 Subject: [PATCH] (RARCH_CONSOLE) When we encounter a CORE executable - rename, save and exit app. --- frontend/frontend_console.c | 4 ++-- frontend/platform/platform_xdk_exec.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/frontend_console.c b/frontend/frontend_console.c index a4f6f9a556..aaed036b05 100644 --- a/frontend/frontend_console.c +++ b/frontend/frontend_console.c @@ -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 diff --git a/frontend/platform/platform_xdk_exec.c b/frontend/platform/platform_xdk_exec.c index 91e94d8068..9ba2b77be6 100644 --- a/frontend/platform/platform_xdk_exec.c +++ b/frontend/platform/platform_xdk_exec.c @@ -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