Debugger: Fixed memory labels when load/run values are different (in LD65 config)
This commit is contained in:
parent
02e163f996
commit
0cd345cbca
1 changed files with 6 additions and 4 deletions
|
@ -162,10 +162,12 @@ namespace Mesen.GUI.Debugger
|
|||
IsRam = true
|
||||
};
|
||||
|
||||
match = _segmentPrgRomRegex.Match(row);
|
||||
if(match.Success && !row.Contains("type=rw")) {
|
||||
segment.FileOffset = Int32.Parse(match.Groups[4].Value);
|
||||
segment.IsRam = false;
|
||||
if(segment.Start >= 0x4020) {
|
||||
match = _segmentPrgRomRegex.Match(row);
|
||||
if(match.Success && !row.Contains("type=rw")) {
|
||||
segment.FileOffset = Int32.Parse(match.Groups[4].Value);
|
||||
segment.IsRam = false;
|
||||
}
|
||||
}
|
||||
|
||||
_segments.Add(segment.ID, segment);
|
||||
|
|
Loading…
Add table
Reference in a new issue