mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
(Lakka) Prevent some more segfault bugs
This commit is contained in:
parent
7acf7e706d
commit
ebfb104986
@ -39,11 +39,20 @@
|
||||
|
||||
static int menu_lakka_iterate(void *data, unsigned action)
|
||||
{
|
||||
rgui_handle_t *rgui = (rgui_handle_t*)data;
|
||||
menu_category_t *active_category = (menu_category_t*)&categories[menu_active_category];
|
||||
menu_item_t *active_item = (menu_item_t*)&active_category->items[active_category->active_item];
|
||||
rgui_handle_t *rgui;
|
||||
menu_category_t *active_category;
|
||||
menu_item_t *active_item;
|
||||
|
||||
if (!active_category)
|
||||
rgui = (rgui_handle_t*)data;
|
||||
active_category = NULL;
|
||||
active_item = NULL;
|
||||
|
||||
active_category = (menu_category_t*)&categories[menu_active_category];
|
||||
|
||||
if (active_category)
|
||||
active_item = (menu_item_t*)&active_category->items[active_category->active_item];
|
||||
|
||||
if (!active_category || !active_item)
|
||||
return 0;
|
||||
|
||||
if (driver.video_data && driver.menu_ctx && driver.menu_ctx->set_texture)
|
||||
|
@ -143,6 +143,12 @@ static void update_tween(void *data, float dt)
|
||||
if (!tween)
|
||||
return;
|
||||
|
||||
#if 0
|
||||
RARCH_LOG("delta: %f\n", dt);
|
||||
RARCH_LOG("tween running since: %f\n", tween->running_since);
|
||||
RARCH_LOG("tween duration: %f\n", tween->duration);
|
||||
#endif
|
||||
|
||||
if (tween->running_since < tween->duration)
|
||||
{
|
||||
tween->running_since += dt;
|
||||
|
Loading…
x
Reference in New Issue
Block a user