autoload last saveslot menu option

This commit is contained in:
andres.delikat 2011-09-17 00:25:34 +00:00
parent b587ecffd9
commit 6d9d77afbc
4 changed files with 1793 additions and 1765 deletions

View File

@ -132,6 +132,7 @@
public int AutofireOff = 1;
public bool AutofireLagFrames = true;
public int SaveSlot = 0; //currently selected savestate slot
public bool AutoLoadLastSaveSlot = false;
// Run-Control settings
public int FrameProgressDelayMs = 500; //how long until a frame advance hold turns into a frame progress?

File diff suppressed because it is too large Load Diff

View File

@ -467,6 +467,8 @@ namespace BizHawk.MultiClient
loadstate9toolStripMenuItem.ShortcutKeyDisplayString = Global.Config.LoadSlot8;
loadstate0toolStripMenuItem.ShortcutKeyDisplayString = Global.Config.LoadSlot9;
loadNamedStateToolStripMenuItem.ShortcutKeyDisplayString = Global.Config.LoadNamedState;
autoLoadLastSlotToolStripMenuItem.Checked = Global.Config.AutoLoadLastSaveSlot;
}
private void nametableViewerToolStripMenuItem_Click(object sender, EventArgs e)

View File

@ -199,6 +199,8 @@ namespace BizHawk.MultiClient
if (cmdLoadState != null && Global.Game != null)
LoadState("QuickSave" + cmdLoadState);
else if (Global.Config.AutoLoadLastSaveSlot && Global.Game != null)
LoadState("QuickSave" + Global.Config.SaveSlot.ToString());
if (Global.Config.AutoLoadRamWatch)
LoadRamWatch();
@ -2404,5 +2406,10 @@ namespace BizHawk.MultiClient
StateSlots.ToggleRedo(Global.Config.SaveSlot);
}
private void autoLoadLastSlotToolStripMenuItem_Click(object sender, EventArgs e)
{
Global.Config.AutoLoadLastSaveSlot ^= true;
}
}
}