Correct Named SaveState Dialog so it writes .State to the user's file if they forget. And improved file dialog selection for Named SaveState to allow filtering for .State and All files.

This commit is contained in:
hegyak 2014-08-02 13:58:32 +00:00
parent 93b71373eb
commit 71db42634c
1 changed files with 3 additions and 0 deletions

View File

@ -1662,6 +1662,9 @@ namespace BizHawk.Client.EmuHawk
}
var sfd = new SaveFileDialog();
sfd.AddExtension = true;
sfd.DefaultExt = "State";
sfd.Filter = "Save States (*.State)|*.State|All Files|*.*";
var path = PathManager.GetSaveStatePath(Global.Game);
sfd.InitialDirectory = path;
sfd.FileName = PathManager.SaveStatePrefix(Global.Game) + "." + "QuickSave0.State";