EmuHawk: Deterministic Emulation Revert

This commit is contained in:
Asnivor 2019-01-08 12:48:40 +00:00
parent b7f2363584
commit 4c5728dedb
1 changed files with 6 additions and 17 deletions

View File

@ -3589,23 +3589,12 @@ namespace BizHawk.Client.EmuHawk
} }
try try
{ {
bool deterministic; // movies should require deterministic emulation in ALL cases
// if the core is managing its own DE through SyncSettings a 'deterministic' bool can be passed into the core's constructor
if (args.Deterministic == null) // it is then up to the core itself to override its own local DeterministicEmulation setting
{ bool deterministic = args.Deterministic ?? Global.MovieSession.QueuedMovie != null;
// movies should require deterministic emulation in ALL cases
// if the core is managing its own DE through SyncSettings a 'deterministic' bool can be passed into the core's constructor
// it is then up to the core itself to override its own local DeterministicEmulation setting
// if a movie is *not* queued then make this false (this is needed for mGBA logic and is how things were working before I changed them -Asni)
deterministic = Global.MovieSession.QueuedMovie != null;
}
else
{
// a value was actually supplied somehow - use this
deterministic = args.Deterministic.Value;
}
if (!GlobalWin.Tools.AskSave()) if (!GlobalWin.Tools.AskSave())
{ {
return false; return false;