diff --git a/GUI.NET/Debugger/DbgImporter.cs b/GUI.NET/Debugger/DbgImporter.cs index c2e6ba1d..7af5c861 100644 --- a/GUI.NET/Debugger/DbgImporter.cs +++ b/GUI.NET/Debugger/DbgImporter.cs @@ -145,9 +145,12 @@ namespace Mesen.GUI.Debugger if(_segments.ContainsKey(symbol.SegmentID)) { SegmentInfo segment = _segments[symbol.SegmentID]; + int count = 2; + string orgSymbolName = symbol.Name; while(!_usedLabels.Add(symbol.Name)) { //Ensure labels are unique - symbol.Name += "_"; + symbol.Name = orgSymbolName + "_" + count.ToString(); + count++; } if(segment.IsRam) {