(RARCH_CONSOLE) Fixes pushes to ROM history list - it should only push an entry
if either g_extern.system.no_game is true, or when either *tmp or g_extern.fullpath is not null. Otherwise it will push an entry with a bogus 'ROM path' to the list, and this broke RMenu badly
This commit is contained in:
parent
2e5d151fac
commit
c55a0885c7
|
@ -207,6 +207,7 @@ void menu_rom_history_push_current(void)
|
||||||
if (*tmp)
|
if (*tmp)
|
||||||
path_resolve_realpath(tmp, sizeof(tmp));
|
path_resolve_realpath(tmp, sizeof(tmp));
|
||||||
|
|
||||||
|
if (g_extern.system.no_game || *tmp)
|
||||||
menu_rom_history_push(*tmp ? tmp : NULL,
|
menu_rom_history_push(*tmp ? tmp : NULL,
|
||||||
g_settings.libretro,
|
g_settings.libretro,
|
||||||
g_extern.system.info.library_name);
|
g_extern.system.info.library_name);
|
||||||
|
@ -226,6 +227,7 @@ void load_menu_game_prepare(void)
|
||||||
msg_queue_push(g_extern.msg_queue, str, 1, 1);
|
msg_queue_push(g_extern.msg_queue, str, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (g_extern.system.no_game || *g_extern.fullpath)
|
||||||
menu_rom_history_push(*g_extern.fullpath ? g_extern.fullpath : NULL,
|
menu_rom_history_push(*g_extern.fullpath ? g_extern.fullpath : NULL,
|
||||||
g_settings.libretro,
|
g_settings.libretro,
|
||||||
rgui->info.library_name ? rgui->info.library_name : "");
|
rgui->info.library_name ? rgui->info.library_name : "");
|
||||||
|
|
Loading…
Reference in New Issue