Record Movie Dialog - make filename text box default to the game name, and change save file dialog to populate from this text box not game name

This commit is contained in:
adelikat 2012-04-22 14:04:10 +00:00
parent 2aeedf074e
commit 1fc010ad56
1 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,7 @@ namespace BizHawk.MultiClient
SaveFileDialog sfd = new SaveFileDialog();
sfd.InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.MoviesPath, "");
sfd.DefaultExt = "." + Global.Config.MovieExtension;
sfd.FileName = PathManager.FilesystemSafeName(Global.Game) + "." + sfd.DefaultExt;
sfd.FileName = RecordBox.Text;
sfd.Filter = "Generic Movie Files (*." + Global.Config.MovieExtension + ")|*." + Global.Config.MovieExtension + "|" + Global.MainForm.GetMovieExtName() + "|All Files (*.*)|*.*";
Global.Sound.StopSound();
@ -136,6 +136,7 @@ namespace BizHawk.MultiClient
private void RecordMovie_Load(object sender, EventArgs e)
{
RecordBox.Text = Global.Game.Name;
StartFromCombo.SelectedIndex = 0;
DefaultAuthorCheckBox.Checked = Global.Config.UseDefaultAuthor;
if (Global.Config.UseDefaultAuthor)