From 7620d08ec3129622dab69d58cd2f284db1bddca5 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Tue, 18 Jan 2011 01:55:01 +0000 Subject: [PATCH] Save autoload recent rom bool to config --- BizHawk.MultiClient/Config.cs | 1 + BizHawk.MultiClient/MainForm.cs | 12 ++++++------ BizHawk.MultiClient/output/config.ini | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/BizHawk.MultiClient/Config.cs b/BizHawk.MultiClient/Config.cs index 39232a6bf9..f2d06a0ae7 100644 --- a/BizHawk.MultiClient/Config.cs +++ b/BizHawk.MultiClient/Config.cs @@ -5,6 +5,7 @@ // General Client Settings public bool SoundEnabled = true; public string LastRomPath = "."; + public bool AutoLoadMostRecentRom = false; //TODO: eventually make a class or struct for all the auto-loads, which will include recent roms, movies, etc, as well as autoloading any modeless dialog // Client Hotkey Bindings public string HardResetBinding = "LeftShift+Tab"; diff --git a/BizHawk.MultiClient/MainForm.cs b/BizHawk.MultiClient/MainForm.cs index 819aa57857..c8fe879614 100644 --- a/BizHawk.MultiClient/MainForm.cs +++ b/BizHawk.MultiClient/MainForm.cs @@ -15,7 +15,7 @@ namespace BizHawk.MultiClient private Control renderTarget; private RetainedViewportPanel retainedPanel; private RecentFiles RecentRoms = new RecentFiles(8); - private bool AutoLoadMostRecentRom = false; //TODO: eventually make a class or struct for all the auto-loads, which will include recent roms, movies, etc, as well as autoloading any modeless dialog + private int SaveSlot = 0; //Saveslot sytem @@ -593,15 +593,15 @@ namespace BizHawk.MultiClient private void UpdateAutoLoadRecentRom() { - if (AutoLoadMostRecentRom == true) + if (Global.Config.AutoLoadMostRecentRom == true) { autoloadMostRecentToolStripMenuItem.Checked = false; - AutoLoadMostRecentRom = false; + Global.Config.AutoLoadMostRecentRom = false; } else { autoloadMostRecentToolStripMenuItem.Checked = true; - AutoLoadMostRecentRom = true; + Global.Config.AutoLoadMostRecentRom = true; } } @@ -672,7 +672,7 @@ namespace BizHawk.MultiClient loadstate0toolStripMenuItem.Enabled = true; } - if (AutoLoadMostRecentRom == true) + if (Global.Config.AutoLoadMostRecentRom == true) autoloadMostRecentToolStripMenuItem.Checked = true; else autoloadMostRecentToolStripMenuItem.Checked = false; @@ -710,7 +710,7 @@ namespace BizHawk.MultiClient var auto = new ToolStripMenuItem(); auto.Text = "&Autoload Most Recent"; auto.Click += (o, ev) => UpdateAutoLoadRecentRom(); - if (AutoLoadMostRecentRom == true) + if (Global.Config.AutoLoadMostRecentRom == true) auto.Checked = true; else auto.Checked = false; diff --git a/BizHawk.MultiClient/output/config.ini b/BizHawk.MultiClient/output/config.ini index bdba2c1617..b4d236266b 100644 --- a/BizHawk.MultiClient/output/config.ini +++ b/BizHawk.MultiClient/output/config.ini @@ -1,5 +1,6 @@ SoundEnabled True LastRomPath D:\TAS\adelikatTAS\Archive +AutoLoadMostRecentRom True HardResetBinding LeftShift+Tab FastForwardBinding J1 B6 RewindBinding J1 B5