From 6dc3be29e364372c224f82a7d835eb67092c9ddb Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Tue, 15 Feb 2011 17:22:24 +0000 Subject: [PATCH] Check the save slot menu item corresponding to the currently selected save slot during the file menu dropdown event --- BizHawk.MultiClient/MainForm.cs | 50 ++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/MainForm.cs b/BizHawk.MultiClient/MainForm.cs index 1c386ff053..0eafa51c58 100644 --- a/BizHawk.MultiClient/MainForm.cs +++ b/BizHawk.MultiClient/MainForm.cs @@ -809,7 +809,55 @@ namespace BizHawk.MultiClient loadstate9toolStripMenuItem.Enabled = true; loadstate0toolStripMenuItem.Enabled = true; } - + + selectSlot10ToolStripMenuItem.Checked = false; + selectSlot1ToolStripMenuItem.Checked = false; + selectSlot2ToolStripMenuItem.Checked = false; + selectSlot3ToolStripMenuItem.Checked = false; + selectSlot4ToolStripMenuItem.Checked = false; + selectSlot5ToolStripMenuItem.Checked = false; + selectSlot6ToolStripMenuItem.Checked = false; + selectSlot7ToolStripMenuItem.Checked = false; + selectSlot8ToolStripMenuItem.Checked = false; + selectSlot9ToolStripMenuItem.Checked = false; + + selectSlot1ToolStripMenuItem.Checked = false; + switch (SaveSlot) + { + case 0: + selectSlot10ToolStripMenuItem.Checked = true; + break; + case 1: + selectSlot1ToolStripMenuItem.Checked = true; + break; + case 2: + selectSlot2ToolStripMenuItem.Checked = true; + break; + case 3: + selectSlot3ToolStripMenuItem.Checked = true; + break; + case 4: + selectSlot4ToolStripMenuItem.Checked = true; + break; + case 5: + selectSlot5ToolStripMenuItem.Checked = true; + break; + case 6: + selectSlot6ToolStripMenuItem.Checked = true; + break; + case 7: + selectSlot7ToolStripMenuItem.Checked = true; + break; + case 8: + selectSlot8ToolStripMenuItem.Checked = true; + break; + case 9: + selectSlot9ToolStripMenuItem.Checked = true; + break; + default: + break; + } + if (Global.Config.AutoLoadMostRecentRom == true) autoloadMostRecentToolStripMenuItem.Checked = true; else