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:
parent
f565eeef74
commit
6c8d4c536a
|
@ -261,6 +261,9 @@ namespace BizHawk.Client.Common
|
|||
}
|
||||
}
|
||||
|
||||
public void AbortQueuedMovie()
|
||||
=> _queuedMovie = null;
|
||||
|
||||
public void StopMovie(bool saveChanges = true)
|
||||
{
|
||||
if (Movie.IsActive())
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -48,6 +48,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
finally
|
||||
{
|
||||
MovieSession.AbortQueuedMovie();
|
||||
Config.PreferredCores = oldPreferredCores;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue