make bk2 the default even in non-developer builds

This commit is contained in:
adelikat 2014-06-30 12:03:10 +00:00
parent 7e3e29820f
commit 5262bed608
1 changed files with 6 additions and 23 deletions

View File

@ -11,25 +11,18 @@ namespace BizHawk.Client.Common
public static IMovie Get(string path) public static IMovie Get(string path)
{ {
// TODO: change IMovies to take HawkFiles only and not path // TODO: change IMovies to take HawkFiles only and not path
if (Path.GetExtension(path).EndsWith("bk2"))
{
return new Bk2Movie(path);
}
if (Path.GetExtension(path).EndsWith("tasproj")) if (Path.GetExtension(path).EndsWith("tasproj"))
{ {
return new TasMovie(path); return new TasMovie(path);
} }
var movie = new BkmMovie(path); if (Path.GetExtension(path).EndsWith("bkm"))
if (VersionInfo.DeveloperBuild)
{ {
movie.Load(); return new BkmMovie(path).ToBk2();
return movie.ToBk2();
} }
return movie; // Default to bk2
return new Bk2Movie(path);
} }
/// <summary> /// <summary>
@ -38,14 +31,9 @@ namespace BizHawk.Client.Common
public static string DefaultExtension public static string DefaultExtension
{ {
get get
{
if (VersionInfo.DeveloperBuild)
{ {
return "bk2"; return "bk2";
} }
return "bkm";
}
} }
/// <summary> /// <summary>
@ -78,14 +66,9 @@ namespace BizHawk.Client.Common
public static IMovie DefaultInstance public static IMovie DefaultInstance
{ {
get get
{
if (VersionInfo.DeveloperBuild)
{ {
return new Bk2Movie(); return new Bk2Movie();
} }
return new BkmMovie();
}
} }
} }
} }