mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 22:20:31 +00:00
Refactor menu_defer_core
This commit is contained in:
parent
777529db96
commit
5d6091ab2b
@ -61,12 +61,13 @@ int menu_defer_core(core_info_list_t *core_info, const char *dir, const char *pa
|
|||||||
if (supported == 1) // Can make a decision right now.
|
if (supported == 1) // Can make a decision right now.
|
||||||
{
|
{
|
||||||
strlcpy(g_extern.fullpath, deferred_path, sizeof(g_extern.fullpath));
|
strlcpy(g_extern.fullpath, deferred_path, sizeof(g_extern.fullpath));
|
||||||
strlcpy(g_settings.libretro, info->path, sizeof(g_settings.libretro));
|
|
||||||
|
if (path_file_exists(info->path))
|
||||||
|
strlcpy(g_settings.libretro, info->path, sizeof(g_settings.libretro));
|
||||||
|
|
||||||
#ifdef HAVE_DYNAMIC
|
#ifdef HAVE_DYNAMIC
|
||||||
g_extern.lifecycle_state |= (1ULL << MODE_LOAD_GAME);
|
g_extern.lifecycle_state |= (1ULL << MODE_LOAD_GAME);
|
||||||
#else
|
#else
|
||||||
rarch_environment_cb(RETRO_ENVIRONMENT_SET_LIBRETRO_PATH, (void*)g_settings.libretro);
|
|
||||||
rarch_environment_cb(RETRO_ENVIRONMENT_EXEC, (void*)g_extern.fullpath);
|
rarch_environment_cb(RETRO_ENVIRONMENT_EXEC, (void*)g_extern.fullpath);
|
||||||
#endif
|
#endif
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user