Debugger: Script Window - Fixed bug that caused a saved script on the disk to be overwritten with another script

This commit is contained in:
Sour 2020-04-03 19:00:49 -04:00
parent 4ff12ecfaa
commit 1b4440057a

View file

@ -221,6 +221,7 @@ namespace Mesen.GUI.Debugger
this.Text = $"{name} - Script Window";
txtScriptContent.Text = ResourceExtractor.ReadZippedResource(name);
_originalText = txtScriptContent.Text;
_filePath = null;
_builtInScriptName = name;
txtScriptContent.ClearUndo();
}