This commit is contained in:
adelikat 2014-06-11 02:44:08 +00:00
parent 3d3a0cdeb3
commit 6bd2df3bbf
1 changed files with 1 additions and 22 deletions

View File

@ -14,7 +14,7 @@ namespace BizHawk.Client.EmuHawk
{
public partial class PlayMovie : Form
{
// Movies 2.0 TODO: this is hopelessly Movie.cs specific, to make it generic, make a MovieLoader class that receives a path and returns an IMovie, that does the logic of determining bkm, bk2, or tasproj
// Movies 2.0 TODO: this is hopelessly Movie.cs specific, make it generic,
private List<IMovie> _movieList = new List<IMovie>();
private bool _sortReverse;
private string _sortedCol;
@ -75,27 +75,6 @@ namespace BizHawk.Client.EmuHawk
}
}
private void AddStateToList(string filename)
{
using (var file = new HawkFile(filename))
{
if (file.Exists)
{
if (!IsDuplicateOf(filename).HasValue)
{
var movie = new Movie(file.CanonicalFullPath);
movie.Load(); // State files will have to load everything unfortunately
if (movie.FrameCount > 0)
{
_movieList.Add(movie);
_sortReverse = false;
_sortedCol = string.Empty;
}
}
}
}
}
private int? AddMovieToList(string filename, bool force)
{
using (var file = new HawkFile(filename))