movies - oops, don't load a pre-existing movie of the same path, when starting a new recording, I introduced that problem some commits ago

This commit is contained in:
adelikat 2014-07-13 20:33:20 +00:00
parent 54376a7990
commit 8ab278535e
1 changed files with 5 additions and 1 deletions

View File

@ -11,8 +11,12 @@ namespace BizHawk.Client.EmuHawk
partial class MainForm partial class MainForm
{ {
public void StartNewMovie(IMovie movie, bool record) public void StartNewMovie(IMovie movie, bool record)
{
if (!record) // The semantics of record is that we are starting a new movie, and even wiping a pre-existing movie with the same path, but non-record means we are loading an existing movie into playback mode
{ {
movie.Load(); movie.Load();
}
if (movie.SystemID != Global.Emulator.SystemId) if (movie.SystemID != Global.Emulator.SystemId)
{ {
GlobalWin.OSD.AddMessage("Movie does not match the currently loaded system, unable to load"); GlobalWin.OSD.AddMessage("Movie does not match the currently loaded system, unable to load");