(Xbox 1) Option for debug info messages

This commit is contained in:
twinaphex 2012-08-05 18:42:54 +02:00
parent 0ec872c917
commit 9e6c9e5f7b
5 changed files with 23 additions and 2 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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,

View File

@ -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;

View File

@ -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
{