mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
(XMB) xmb_get_userdata_from_core - more refactors
This commit is contained in:
parent
7a4213c0d6
commit
e6e59c6017
@ -745,10 +745,14 @@ static xmb_node_t* xmb_get_userdata_from_core(xmb_handle_t *xmb, core_info_t *in
|
|||||||
if (!info)
|
if (!info)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
node = (xmb_node_t*)info->userdata;
|
if (!info->userdata)
|
||||||
|
{
|
||||||
|
info->userdata = xmb_node_allocate_userdata(xmb, info, i);
|
||||||
|
if (!info->userdata)
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (!node)
|
node = (xmb_node_t*)info->userdata;
|
||||||
return xmb_node_allocate_userdata(xmb, info, i);
|
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user