UI: Fixed uncommon crash when switching from NSF file to a regular rom

This commit is contained in:
Sour 2019-06-23 13:20:29 -04:00
parent 438cccce77
commit 5958405732

View file

@ -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) {