fix some bug with certain case of rom load failure maybe

This commit is contained in:
goyuken 2014-07-17 22:27:33 +00:00
parent e55dd02644
commit 14e9e38c44
1 changed files with 4 additions and 1 deletions

View File

@ -3062,7 +3062,8 @@ namespace BizHawk.Client.EmuHawk
// the new settings objects
CommitCoreSettingsToConfig(); // adelikat: I Think by reordering things, this isn't necessary anymore
CloseGame();
Global.Emulator.Dispose();
//Global.Emulator.Dispose(); // CloseGame() already killed and disposed the emulator; this is killing the new one; that's bad
var nextComm = CreateCoreComm();
CoreFileProvider.SyncCoreCommInputSignals(nextComm);
@ -3242,6 +3243,8 @@ namespace BizHawk.Client.EmuHawk
Global.ActiveController = Global.NullControls;
Global.AutoFireController = Global.AutofireNullControls;
RewireSound();
// adelikat: TODO: Ugly hack! But I don't know a way around this yet.
if (!(Global.MovieSession.Movie is TasMovie))
{