From 1ba78a6ea36fd76d8a740e60dba6b22634a9ce6f Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 9 May 2009 16:13:09 +0000 Subject: [PATCH] Win32 - UpdateHotkeyAssignments() added Save Screenshot As. However, the keys struct doesn't properly return F keys as strings. --- desmume/src/windows/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 88a62a1e1..997688858 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -4018,6 +4018,18 @@ void UpdateHotkeyAssignments() text.append("\t"); text.append(keyname); ChangeMenuItemText(IDM_OPEN, text); + + //Save Screenshot As... + GetMenuString(mainMenu,IDM_PRINTSCREEN, itemText, 255, IDM_PRINTSCREEN); //Get menu item text + text = itemText; //Store in string object + truncate = text.find("\t"); //Find the tab + if (truncate >= 1) //Truncate if it exists + text = text.substr(0,truncate); + keyname = CustomKeys.PrintScreen.key; //Get key & modifiers + keyname.insert(0,GetModifierString(CustomKeys.PrintScreen.modifiers)); + text.append("\t"); + text.append(keyname); + ChangeMenuItemText(IDM_PRINTSCREEN, text); }