(CONSOLE) Fixes history list on console when g_extern.fullpath

does not point to a ROM path
This commit is contained in:
twinaphex 2013-04-28 17:30:08 +02:00
parent 775ed24633
commit 3b5c85f485
1 changed files with 12 additions and 13 deletions

View File

@ -364,6 +364,8 @@ void rgui_list_get_last(const rgui_list_t *list,
#endif
void load_menu_game_prepare(void)
{
if (*g_extern.fullpath)
{
if (g_extern.lifecycle_mode_state & (1ULL << MODE_INFO_DRAW))
{
@ -376,11 +378,8 @@ void load_menu_game_prepare(void)
}
if (rgui->history)
{
rom_history_push(rgui->history,
g_extern.fullpath,
g_settings.libretro,
rgui->info.library_name);
rom_history_push(rgui->history, g_extern.fullpath,
g_settings.libretro, rgui->info.library_name);
}
// Draw frame for loading message