mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 18:35:22 +00:00
(RARCH_CONSOLE) Non-unicode version of rarch_settings_create_menu_item_label
if _XBOX is undefined
This commit is contained in:
parent
074ff4b2fc
commit
fcdeed2a82
@ -203,34 +203,43 @@ void rarch_settings_msg(unsigned setting, unsigned delay)
|
||||
|
||||
#ifdef _XBOX
|
||||
void rarch_settings_create_menu_item_label(wchar_t * strwbuf, unsigned setting, size_t size)
|
||||
#else
|
||||
void rarch_settings_create_menu_item_label(char * str, unsigned setting, size_t size)
|
||||
#endif
|
||||
{
|
||||
#ifdef _XBOX
|
||||
char str[PATH_MAX];
|
||||
size_t SIZEOF_STR = sizeof(str);
|
||||
#else
|
||||
size_t SIZEOF_STR = size;
|
||||
#endif
|
||||
|
||||
switch (setting)
|
||||
{
|
||||
case S_LBL_ASPECT_RATIO:
|
||||
snprintf(str, sizeof(str), "Aspect Ratio: %s", aspectratio_lut[g_console.aspect_ratio_index].name);
|
||||
snprintf(str, SIZEOF_STR, "Aspect Ratio: %s", aspectratio_lut[g_console.aspect_ratio_index].name);
|
||||
break;
|
||||
case S_LBL_SHADER:
|
||||
snprintf(str, sizeof(str), "Shader #1: %s", g_settings.video.cg_shader_path);
|
||||
snprintf(str, SIZEOF_STR, "Shader #1: %s", g_settings.video.cg_shader_path);
|
||||
break;
|
||||
case S_LBL_SHADER_2:
|
||||
snprintf(str, sizeof(str), "Shader #2: %s", g_settings.video.second_pass_shader);
|
||||
snprintf(str, SIZEOF_STR, "Shader #2: %s", g_settings.video.second_pass_shader);
|
||||
break;
|
||||
case S_LBL_RARCH_VERSION:
|
||||
snprintf(str, sizeof(str), "RetroArch %s", PACKAGE_VERSION);
|
||||
snprintf(str, SIZEOF_STR, "RetroArch %s", PACKAGE_VERSION);
|
||||
break;
|
||||
case S_LBL_SCALE_FACTOR:
|
||||
snprintf(str, sizeof(str), "Scale Factor: %f (X) / %f (Y)", g_settings.video.fbo_scale_x, g_settings.video.fbo_scale_y);
|
||||
snprintf(str, SIZEOF_STR, "Scale Factor: %f (X) / %f (Y)", g_settings.video.fbo_scale_x, g_settings.video.fbo_scale_y);
|
||||
break;
|
||||
case S_LBL_ROTATION:
|
||||
snprintf(str, sizeof(str), "Rotation: %s", rotation_lut[g_console.screen_orientation]);
|
||||
snprintf(str, SIZEOF_STR, "Rotation: %s", rotation_lut[g_console.screen_orientation]);
|
||||
break;
|
||||
case S_LBL_STATE_SLOT:
|
||||
snprintf(str, sizeof(str), "Load State #%d", g_extern.state_slot);
|
||||
snprintf(str, SIZEOF_STR, "Load State #%d", g_extern.state_slot);
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef _XBOX
|
||||
rarch_convert_char_to_wchar(strwbuf, str, size);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
@ -93,6 +93,8 @@ void rarch_settings_msg(unsigned setting, unsigned delay);
|
||||
|
||||
#ifdef _XBOX
|
||||
void rarch_settings_create_menu_item_label(wchar_t * strwbuf, unsigned setting, size_t size);
|
||||
#else
|
||||
void rarch_settings_create_menu_item_label(char * str, unsigned setting, size_t size);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user