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:
twinaphex 2013-04-29 03:10:26 +02:00
parent 4a772c3fa8
commit 86628d3462
3 changed files with 4 additions and 4 deletions

View File

@ -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));

View File

@ -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
}

View File

@ -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;
}