mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Fix broken use of SET_LIBRETRO_PATH.
This commit is contained in:
parent
53502bd066
commit
79cd808e81
@ -279,7 +279,9 @@ void load_menu_game_history(unsigned game_index)
|
||||
rom_history_get_index(rgui->history,
|
||||
game_index, &path, &core_path, &core_name);
|
||||
|
||||
rarch_environment_cb(RETRO_ENVIRONMENT_SET_LIBRETRO_PATH, (void*)core_path);
|
||||
// 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));
|
||||
|
||||
if (path)
|
||||
rgui->load_no_rom = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user