(Xbox 1) Option for debug info messages
This commit is contained in:
parent
0ec872c917
commit
9e6c9e5f7b
|
@ -255,6 +255,10 @@ static void set_setting_label(menu * current_menu, item *items, unsigned current
|
|||
snprintf(items[currentsetting].setting_text, sizeof(items[currentsetting].setting_text), "%d", g_extern.state_slot);
|
||||
break;
|
||||
/* emu-specific */
|
||||
case SETTING_EMU_SHOW_DEBUG_INFO_MSG:
|
||||
set_setting_label_write_on_or_off(items, g_console.fps_info_msg_enable, currentsetting);
|
||||
set_setting_label_color(items,g_console.fps_info_msg_enable, currentsetting);
|
||||
break;
|
||||
case SETTING_EMU_SHOW_INFO_MSG:
|
||||
set_setting_label_write_on_or_off(items, g_console.info_msg_enable, currentsetting);
|
||||
set_setting_label_color(items,g_console.info_msg_enable, currentsetting);
|
||||
|
@ -1415,6 +1419,12 @@ static void producesettingentry(menu *current_menu, item *items, unsigned switch
|
|||
if(input & (1 << RETRO_DEVICE_ID_JOYPAD_START))
|
||||
rarch_settings_default(S_DEF_SAVE_STATE);
|
||||
break;
|
||||
case SETTING_EMU_SHOW_DEBUG_INFO_MSG:
|
||||
if((input & (1 << RETRO_DEVICE_ID_JOYPAD_LEFT)) || (input & (1 << RETRO_DEVICE_ID_JOYPAD_RIGHT)) || (input & (1 << RETRO_DEVICE_ID_JOYPAD_B)))
|
||||
g_console.fps_info_msg_enable = !g_console.fps_info_msg_enable;
|
||||
if(input & (1 << RETRO_DEVICE_ID_JOYPAD_START))
|
||||
g_console.fps_info_msg_enable = false;
|
||||
break;
|
||||
case SETTING_EMU_SHOW_INFO_MSG:
|
||||
if((input & (1 << RETRO_DEVICE_ID_JOYPAD_LEFT)) || (input & (1 << RETRO_DEVICE_ID_JOYPAD_RIGHT)) || (input & (1 << RETRO_DEVICE_ID_JOYPAD_B)))
|
||||
g_console.info_msg_enable = !g_console.info_msg_enable;
|
||||
|
|
|
@ -162,6 +162,7 @@ enum
|
|||
SETTING_ENABLE_CUSTOM_BGM,
|
||||
SETTING_DEFAULT_AUDIO_ALL,
|
||||
SETTING_EMU_CURRENT_SAVE_STATE_SLOT,
|
||||
SETTING_EMU_SHOW_DEBUG_INFO_MSG,
|
||||
SETTING_EMU_SHOW_INFO_MSG,
|
||||
SETTING_ZIP_EXTRACT,
|
||||
SETTING_RARCH_DEFAULT_EMU,
|
||||
|
|
|
@ -245,6 +245,16 @@ item rmenu_items[MAX_NO_OF_CONTROLS_SETTINGS] =
|
|||
YELLOW,
|
||||
"INFO - Set the current savestate slot (can also be configured ingame).",
|
||||
WHITE,
|
||||
},
|
||||
{
|
||||
SETTING_EMU_SHOW_DEBUG_INFO_MSG,
|
||||
"Debug Info messages",
|
||||
"",
|
||||
0.0f,
|
||||
0.0f,
|
||||
YELLOW,
|
||||
"INFO - Show onscreen debug messages.",
|
||||
WHITE,
|
||||
},
|
||||
{
|
||||
SETTING_EMU_SHOW_INFO_MSG,
|
||||
|
|
|
@ -207,7 +207,7 @@ struct console_settings
|
|||
bool default_sram_dir_enable;
|
||||
bool default_savestate_dir_enable;
|
||||
bool fbo_enabled;
|
||||
bool fps_info_enable;
|
||||
bool fps_info_msg_enable;
|
||||
bool frame_advance_enable;
|
||||
#ifdef _XBOX
|
||||
bool menus_hd_enable;
|
||||
|
|
|
@ -368,7 +368,7 @@ static bool xdk_d3d_frame(void *data, const void *frame,
|
|||
|
||||
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)data;
|
||||
bool menu_enabled = g_console.menu_enable;
|
||||
bool fps_enable = g_console.fps_info_enable;
|
||||
bool fps_enable = g_console.fps_info_msg_enable;
|
||||
|
||||
if (d3d->last_width != width || d3d->last_height != height) //240*160
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue