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:41 -04:00
parent ee6d8ac011
commit 48c2752d3b

View file

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