mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
(Lakka) Fixup Lakka
This commit is contained in:
parent
0816c0f0bc
commit
7d76ba64bd
@ -754,18 +754,12 @@ static void lakka_context_destroy(void *data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool lakka_init_settings(menu_handle_t *menu)
|
static bool lakka_init_settings(menu_handle_t *menu, lakka_handle_t *lakka)
|
||||||
{
|
{
|
||||||
int k, jj = 0, kk;
|
int k, jj = 0, kk;
|
||||||
lakka_handle_t *lakka = NULL;
|
|
||||||
menu_category_t *category = NULL;
|
menu_category_t *category = NULL;
|
||||||
rarch_setting_t *setting_data = (rarch_setting_t*)menu->list_settings;
|
rarch_setting_t *setting_data = (rarch_setting_t*)menu->list_settings;
|
||||||
|
|
||||||
lakka = (lakka_handle_t*)menu->userdata;
|
|
||||||
|
|
||||||
if (!lakka)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
category = (menu_category_t*)&lakka->categories[0];
|
category = (menu_category_t*)&lakka->categories[0];
|
||||||
|
|
||||||
if (!setting_data || !category)
|
if (!setting_data || !category)
|
||||||
@ -779,8 +773,11 @@ static bool lakka_init_settings(menu_handle_t *menu)
|
|||||||
category->items = (menu_item_t*)
|
category->items = (menu_item_t*)
|
||||||
calloc(category->num_items, sizeof(menu_item_t));
|
calloc(category->num_items, sizeof(menu_item_t));
|
||||||
|
|
||||||
rarch_setting_t *group = (rarch_setting_t*)setting_data_find_setting(driver.menu->list_settings,
|
rarch_setting_t *group = (rarch_setting_t*)setting_data_find_setting(menu->list_settings,
|
||||||
"Driver Options");
|
"Main Menu");
|
||||||
|
|
||||||
|
if (!group)
|
||||||
|
return false;
|
||||||
|
|
||||||
for (; group->type != ST_NONE; group++)
|
for (; group->type != ST_NONE; group++)
|
||||||
{
|
{
|
||||||
@ -1299,7 +1296,7 @@ static bool lakka_init_lists(void *data)
|
|||||||
if (!lakka)
|
if (!lakka)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!lakka_init_settings(menu))
|
if (!lakka_init_settings(menu, lakka))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (i = 1; i < lakka->num_categories; i++)
|
for (i = 1; i < lakka->num_categories; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user