mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(XDK/GX) Cleanups to exitspawn implementations
This commit is contained in:
parent
48961b246e
commit
ce412a7c8b
@ -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))
|
if (g_extern.lifecycle_state & (1ULL << MODE_EXITSPAWN_START_GAME))
|
||||||
should_load_game = true;
|
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
|
// 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);
|
fill_pathname_join(core_path, default_paths.core_dir, "boot.dol", sizeof_core_path);
|
||||||
#endif
|
#endif
|
||||||
|
@ -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)
|
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;
|
bool should_load_game = false;
|
||||||
|
#ifndef IS_SALAMANDER
|
||||||
if (g_extern.lifecycle_state & (1ULL << MODE_EXITSPAWN_START_GAME))
|
if (g_extern.lifecycle_state & (1ULL << MODE_EXITSPAWN_START_GAME))
|
||||||
should_load_game = true;
|
should_load_game = true;
|
||||||
|
|
||||||
frontend_xdk_exec(g_settings.libretro, should_load_game);
|
|
||||||
#endif
|
#endif
|
||||||
|
frontend_xdk_exec(core_path, should_load_game);
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user