bind a hotkey to flush sram

This commit is contained in:
shanehoman 2017-04-02 23:08:47 -07:00
parent 07a8c2c027
commit 0db0c4eccf
4 changed files with 10 additions and 0 deletions

View File

@ -132,6 +132,7 @@ namespace BizHawk.Client.Common
Bind("General", "Open ROM", "Ctrl+O"),
Bind("General", "Close ROM", "Ctrl+W"),
Bind("General", "Load Last ROM"),
Bind("General", "Flush SRAM", "Ctrl+S"),
Bind("General", "Display FPS"),
Bind("General", "Frame Counter"),
Bind("General", "Lag Counter"),

View File

@ -894,6 +894,7 @@
this.SaveRAMSubMenu.Name = "SaveRAMSubMenu";
this.SaveRAMSubMenu.Size = new System.Drawing.Size(159, 22);
this.SaveRAMSubMenu.Text = "Save &RAM";
this.SaveRAMSubMenu.DropDownOpened += new System.EventHandler(this.SaveRAMSubMenu_DropDownOpened);
//
// FlushSaveRAMMenuItem
//

View File

@ -2178,6 +2178,11 @@ namespace BizHawk.Client.EmuHawk
SaveRam();
}
private void SaveRAMSubMenu_DropDownOpened(object sender, EventArgs e)
{
this.FlushSaveRAMMenuItem.ShortcutKeyDisplayString = Global.Config.HotkeyBindings["Save SRAM"].Bindings;
}
#endregion
#region Coleco

View File

@ -63,6 +63,9 @@ namespace BizHawk.Client.EmuHawk
case "Load Last ROM":
LoadRomFromRecent(Global.Config.RecentRoms.MostRecent);
break;
case "Flush SRAM":
SaveRam();
break;
case "Display FPS":
ToggleFPS();
break;