Movies - if in read+write mode and loading a post-movie savestate, the movie will now correctly go into movie finished mode, rather than stay in recording mode and cause desyncs
This commit is contained in:
parent
2810a048f0
commit
12ea262de9
|
@ -547,10 +547,6 @@ namespace BizHawk.MultiClient
|
|||
while (true)
|
||||
{
|
||||
string line = reader.ReadLine();
|
||||
if (line.Contains(".[NES")) //TODO: Remove debug
|
||||
{
|
||||
MessageBox.Show("OOPS! Corrupted file stream");
|
||||
}
|
||||
if (line == null) break;
|
||||
else if (line.Trim() == "") continue;
|
||||
else if (line == "[Input]") continue;
|
||||
|
@ -619,6 +615,12 @@ namespace BizHawk.MultiClient
|
|||
Log.TruncateStates(stateFrame);
|
||||
Log.TruncateMovie(stateFrame);
|
||||
}
|
||||
else if (stateFrame > Log.Length) //Post movie savestate
|
||||
{
|
||||
Log.TruncateStates(Log.Length);
|
||||
Log.TruncateMovie(Log.Length);
|
||||
Mode = MOVIEMODE.FINISHED;
|
||||
}
|
||||
Rerecords++;
|
||||
reader.Close();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue