(XDK/GX) Cleanups to exitspawn implementations

This commit is contained in:
twinaphex 2014-06-05 06:45:31 +02:00
parent 48961b246e
commit ce412a7c8b
2 changed files with 5 additions and 6 deletions

View File

@ -291,7 +291,9 @@ static void frontend_gx_exitspawn(char *core_path, size_t sizeof_core_path)
if (g_extern.lifecycle_state & (1ULL << MODE_EXITSPAWN_START_GAME))
should_load_game = true;
frontend_gx_exec(g_settings.libretro, should_load_game);
frontend_gx_exec(core_path, should_load_game);
// FIXME/TODO - hack
// direct loading failed (out of memory), try to jump to salamander then load the correct core
fill_pathname_join(core_path, default_paths.core_dir, "boot.dol", sizeof_core_path);
#endif

View File

@ -244,15 +244,12 @@ static void frontend_xdk_exec(const char *path, bool should_load_game);
static void frontend_xdk_exitspawn(char *core_path, size_t sizeof_core_path)
{
#ifdef IS_SALAMANDER
frontend_xdk_exec(core_path, false);
#else
bool should_load_game = false;
#ifndef IS_SALAMANDER
if (g_extern.lifecycle_state & (1ULL << MODE_EXITSPAWN_START_GAME))
should_load_game = true;
frontend_xdk_exec(g_settings.libretro, should_load_game);
#endif
frontend_xdk_exec(core_path, should_load_game);
}
#include <stdio.h>