mirror of
https://github.com/libretro/RetroArch
synced 2025-02-12 09:40:06 +00:00
menu_common.c - cleanups
This commit is contained in:
parent
8c35a40648
commit
15f7c66397
@ -88,9 +88,6 @@ void menu_rom_history_push_current(void)
|
|||||||
// Ensure we're pushing absolute path.
|
// Ensure we're pushing absolute path.
|
||||||
char tmp[PATH_MAX];
|
char tmp[PATH_MAX];
|
||||||
|
|
||||||
if (!driver.menu)
|
|
||||||
return;
|
|
||||||
|
|
||||||
strlcpy(tmp, g_extern.fullpath, sizeof(tmp));
|
strlcpy(tmp, g_extern.fullpath, sizeof(tmp));
|
||||||
|
|
||||||
if (*tmp)
|
if (*tmp)
|
||||||
@ -163,14 +160,9 @@ void load_menu_game_history(unsigned game_index)
|
|||||||
rom_history_get_index(driver.menu->history,
|
rom_history_get_index(driver.menu->history,
|
||||||
game_index, &path, &core_path, &core_name);
|
game_index, &path, &core_path, &core_name);
|
||||||
|
|
||||||
// SET_LIBRETRO_PATH is unsafe here.
|
|
||||||
// Risks booting different and wrong core if core doesn't exist anymore.
|
|
||||||
strlcpy(g_settings.libretro, core_path, sizeof(g_settings.libretro));
|
strlcpy(g_settings.libretro, core_path, sizeof(g_settings.libretro));
|
||||||
|
|
||||||
if (path)
|
driver.menu->load_no_rom = (path) ? false : true;
|
||||||
driver.menu->load_no_rom = false;
|
|
||||||
else
|
|
||||||
driver.menu->load_no_rom = true;
|
|
||||||
|
|
||||||
rarch_environment_cb(RETRO_ENVIRONMENT_EXEC, (void*)path);
|
rarch_environment_cb(RETRO_ENVIRONMENT_EXEC, (void*)path);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user