mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
CXX_BUILD fixes
This commit is contained in:
parent
611bcec28c
commit
750c134b86
@ -143,7 +143,7 @@ unsigned menu_entry_get_type_new(uint32_t i)
|
|||||||
uint32_t menu_entry_get_bool_value(uint32_t i)
|
uint32_t menu_entry_get_bool_value(uint32_t i)
|
||||||
{
|
{
|
||||||
rarch_setting_t *setting = menu_entry_get_setting(i);
|
rarch_setting_t *setting = menu_entry_get_setting(i);
|
||||||
bool *ptr = setting_get_ptr(setting);
|
bool *ptr = (bool*)setting_get_ptr(setting);
|
||||||
if (!ptr)
|
if (!ptr)
|
||||||
return 0;
|
return 0;
|
||||||
return *ptr;
|
return *ptr;
|
||||||
|
@ -353,7 +353,7 @@ void menu_input_st_hex_callback(void *userdata, const char *str)
|
|||||||
|
|
||||||
if (setting)
|
if (setting)
|
||||||
{
|
{
|
||||||
unsigned *ptr = setting_get_ptr(setting);
|
unsigned *ptr = (unsigned*)setting_get_ptr(setting);
|
||||||
if (str[0] == '#')
|
if (str[0] == '#')
|
||||||
str++;
|
str++;
|
||||||
*ptr = strtoul(str, NULL, 16);
|
*ptr = strtoul(str, NULL, 16);
|
||||||
|
@ -148,7 +148,7 @@ struct rarch_setting
|
|||||||
} boolean;
|
} boolean;
|
||||||
|
|
||||||
unsigned bind_type;
|
unsigned bind_type;
|
||||||
unsigned browser_selection_type;
|
enum setting_type browser_selection_type;
|
||||||
float step;
|
float step;
|
||||||
const char *rounding_fraction;
|
const char *rounding_fraction;
|
||||||
bool enforce_minrange;
|
bool enforce_minrange;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user