Play Movie dialog - include .bkm and .tas regardless, since our matching of current rom is not very robust, make match current game option set to false by default

This commit is contained in:
adelikat 2012-04-02 01:35:34 +00:00
parent a18b700664
commit 2581edc958
2 changed files with 6 additions and 2 deletions

View File

@ -378,7 +378,7 @@ namespace BizHawk.MultiClient
//Play Movie Dialog
public bool PlayMovie_IncludeSubdir = true;
public bool PlayMovie_ShowStateFiles = false;
public bool PlayMovie_MatchGameName = true;
public bool PlayMovie_MatchGameName = false;
//TI83
public bool TI83autoloadKeyPad = true;

View File

@ -267,9 +267,13 @@ namespace BizHawk.MultiClient
string d = PathManager.MakeAbsolutePath(Global.Config.MoviesPath, "");
if (!Directory.Exists(d))
Directory.CreateDirectory(d);
string extension = "*." + Global.Config.MovieExtension;
foreach (string f in Directory.GetFiles(d, "*." + Global.Config.MovieExtension))
AddMovieToList(f);
foreach (string f in Directory.GetFiles(d, "*.tas"))
AddMovieToList(f);
foreach (string f in Directory.GetFiles(d, "*.bkm"))
AddMovieToList(f);
if (Global.Config.PlayMovie_ShowStateFiles)
{
foreach (string f in Directory.GetFiles(d, "*.state"))