Debugger: Shorter symbol names when duplicates are found when importing DBG files

This commit is contained in:
Souryo 2016-11-26 17:48:35 -05:00
parent ea9c32437c
commit 50103ff94a

View File

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