mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 04:20:28 +00:00
Add param to load_menu_game_history - rgui->selection_ptr is
unused yet in RMenu/RMenu XUI, so need to pass a param to function
This commit is contained in:
parent
4a772c3fa8
commit
86628d3462
@ -394,14 +394,14 @@ void load_menu_game_prepare(void)
|
||||
MENU_TEXTURE_FULLSCREEN);
|
||||
}
|
||||
|
||||
void load_menu_game_history(void)
|
||||
void load_menu_game_history(unsigned game_index)
|
||||
{
|
||||
const char *path = NULL;
|
||||
const char *core_path = NULL;
|
||||
const char *core_name = NULL;
|
||||
|
||||
rom_history_get_index(rgui->history,
|
||||
rgui->selection_ptr, &path, &core_path, &core_name);
|
||||
game_index, &path, &core_path, &core_name);
|
||||
|
||||
strlcpy(g_settings.libretro, core_path, sizeof(g_settings.libretro));
|
||||
strlcpy(g_extern.fullpath, path, sizeof(g_extern.fullpath));
|
||||
|
@ -270,7 +270,7 @@ void shader_manager_get_str(struct gfx_shader *shader,
|
||||
|
||||
void load_menu_game_prepare(void);
|
||||
bool load_menu_game(void);
|
||||
void load_menu_game_history(void);
|
||||
void load_menu_game_history(unsigned game_index);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -2191,7 +2191,7 @@ int rgui_iterate(rgui_handle_t *rgui)
|
||||
}
|
||||
else if (menu_type == RGUI_SETTINGS_OPEN_HISTORY)
|
||||
{
|
||||
load_menu_game_history();
|
||||
load_menu_game_history(rgui->selection_ptr);
|
||||
rgui->need_refresh = true;
|
||||
ret = -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user