Recently in RetroArch 1.9.0, a new feature was added “You can now selectively hide/enable widget notifications of several types.”
For reasons, I specifically loathe the state slot notifications (when you save a state it tells you what slot you’re saving to anyways), and I am trying to get this added and working in Settings/On-Screen Display/On-Screen Notifications/Notification Visibility.
I have succeeded in getting the setting to at least appear in the menu, however, the toggle does not actually do anything, and I can’t figure out where I’m going wrong.
I have edited the following files/lines:
osd.cpp, line 63
notificationsGroup->add(MENU_ENUM_LABEL_NOTIFICATION_SHOW_STATE_SLOT);
menu_cbs_sublabel.c, line 385
DEFAULT_SUBLABEL_MACRO(action_bind_sublabel_notification_show_state_slot, MENU_ENUM_SUBLABEL_NOTIFICATION_SHOW_STATE_SLOT)
and line 3046
case MENU_ENUM_LABEL_NOTIFICATION_SHOW_STATE_SLOT: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_notification_show_state_slot);
menu_displaylist.c, line 7831
{MENU_ENUM_LABEL_NOTIFICATION_SHOW_STATE_SLOT, PARSE_ONLY_BOOL, true },
menu_setting.c, line 12754
CONFIG_BOOL(
list, list_info,
&settings->bools.notification_show_state_slot,
MENU_ENUM_LABEL_NOTIFICATION_SHOW_STATE_SLOT,
MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_STATE_SLOT,
DEFAULT_NOTIFICATION_SHOW_STATE_SLOT,
MENU_ENUM_LABEL_VALUE_OFF,
MENU_ENUM_LABEL_VALUE_ON,
&group_info,
&subgroup_info,
parent_group,
general_write_handler,
general_read_handler,
SD_FLAG_NONE);
msg_hash.h, line 2609
MENU_LABEL(NOTIFICATION_SHOW_STATE_SLOT),
configuration.c, line 1483
SETTING_BOOL(“notification_show_state_slot”, &settings->bools.notification_show_state_slot, true, DEFAULT_NOTIFICATION_SHOW_STATE_SLOT, false);
configuration.h, line 510
bool notification_show_state_slot;
msg_hash_us.h, line 3451
MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_STATE_SLOT, “State slot Notifications” ) MSG_HASH( MENU_ENUM_SUBLABEL_NOTIFICATION_SHOW_STATE_SLOT, “Display an on-screen message when the state slot is changed.” )
config.def.h, line 756
/* Display a notification when changing state slots
- content */ #define DEFAULT_NOTIFICATION_SHOW_STATE_SLOT true
Before somebody rips on my feeble attempts, please understand I’m just a weekend warrior trying to be resourceful here. I have asked for this feature, I have offered a bounty for this feature, and finally since nobody seemed to be interested in this but me, I’ve tried to do it myself.
I’m not sure what I got right, what I got wrong, but to even get this far took a lot of trial and error, and it is at least showing up in the menu.
Can someone please, please help me finish what I started? I would be forever grateful.