mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Create menu_setting_get_ptr
This commit is contained in:
parent
f270f3a9e0
commit
cbaf5cdd05
@ -132,6 +132,15 @@ static int menu_action_handle_setting(rarch_setting_t *setting,
|
||||
return -1;
|
||||
}
|
||||
|
||||
rarch_setting_t *menu_setting_get_ptr(void)
|
||||
{
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
|
||||
if (!menu)
|
||||
return NULL;
|
||||
return menu->list_settings;
|
||||
}
|
||||
|
||||
rarch_setting_t *menu_setting_find(const char *label)
|
||||
{
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
|
@ -32,6 +32,8 @@ int menu_setting_set(unsigned type, const char *label,
|
||||
|
||||
rarch_setting_t *menu_setting_find(const char *label);
|
||||
|
||||
rarch_setting_t *menu_setting_get_ptr(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user