Clear `MovieSession._queuedMovie` if rom load fails (resolves #3582)

for #3582, `MovieSession.QueuedCoreName`, which gets passed to `RomLoader`,
evaluated to a nonexistent core name and couldn't be cleared
This commit is contained in:
YoshiRulz 2023-03-17 11:50:30 +10:00
parent f565eeef74
commit 6c8d4c536a
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
3 changed files with 7 additions and 0 deletions

View File

@ -261,6 +261,9 @@ namespace BizHawk.Client.Common
}
}
public void AbortQueuedMovie()
=> _queuedMovie = null;
public void StopMovie(bool saveChanges = true)
{
if (Movie.IsActive())

View File

@ -84,6 +84,9 @@ namespace BizHawk.Client.Common
/// </summary>
void RunQueuedMovie(bool recordMode, IEmulator emulator);
/// <summary>clears the queued movie</summary>
void AbortQueuedMovie();
void StopMovie(bool saveChanges = true);
/// <summary>

View File

@ -48,6 +48,7 @@ namespace BizHawk.Client.EmuHawk
}
finally
{
MovieSession.AbortQueuedMovie();
Config.PreferredCores = oldPreferredCores;
}