Debugger: Fixed memory labels when load/run values are different (in LD65 config)

This commit is contained in:
Sour 2018-08-19 15:07:21 -04:00
parent 02e163f996
commit 0cd345cbca

View file

@ -162,10 +162,12 @@ namespace Mesen.GUI.Debugger
IsRam = true IsRam = true
}; };
match = _segmentPrgRomRegex.Match(row); if(segment.Start >= 0x4020) {
if(match.Success && !row.Contains("type=rw")) { match = _segmentPrgRomRegex.Match(row);
segment.FileOffset = Int32.Parse(match.Groups[4].Value); if(match.Success && !row.Contains("type=rw")) {
segment.IsRam = false; segment.FileOffset = Int32.Parse(match.Groups[4].Value);
segment.IsRam = false;
}
} }
_segments.Add(segment.ID, segment); _segments.Add(segment.ID, segment);