UI: Fixed uncommon crash when switching from NSF file to a regular rom
This commit is contained in:
parent
438cccce77
commit
5958405732
1 changed files with 4 additions and 1 deletions
|
@ -684,9 +684,12 @@ namespace Mesen.GUI.Forms
|
|||
}));
|
||||
break;
|
||||
|
||||
case InteropEmu.ConsoleNotificationType.EmulationStopped:
|
||||
InitializeNsfMode();
|
||||
break;
|
||||
|
||||
case InteropEmu.ConsoleNotificationType.GameStopped:
|
||||
this._currentGame = null;
|
||||
InitializeNsfMode();
|
||||
CheatInfo.ClearCheats();
|
||||
this.BeginInvoke((MethodInvoker)(() => {
|
||||
if(_hdPackEditorWindow != null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue