Debugger: Tweak WLA-DX .sym regex to allow more .sym files to load properly

This commit is contained in:
Sour 2020-05-31 16:20:00 -04:00
parent 67f000c18c
commit bab36b826f

View file

@ -76,9 +76,9 @@ namespace Mesen.GUI.Debugger.Integration
string basePath = Path.GetDirectoryName(path);
string[] lines = File.ReadAllLines(path);
Regex labelRegex = new Regex(@"^([0-9a-fA-F]{2}):([0-9a-fA-F]{4}) ([^\s]*)", RegexOptions.Compiled);
Regex labelRegex = new Regex(@"^([0-9a-fA-F]{2,4}):([0-9a-fA-F]{4}) ([^\s]*)", RegexOptions.Compiled);
Regex fileRegex = new Regex(@"^([0-9a-fA-F]{4}) ([0-9a-fA-F]{8}) (.*)", RegexOptions.Compiled);
Regex addrRegex = new Regex(@"^([0-9a-fA-F]{2}):([0-9a-fA-F]{4}) ([0-9a-fA-F]{4}):([0-9a-fA-F]{8})", RegexOptions.Compiled);
Regex addrRegex = new Regex(@"^([0-9a-fA-F]{2,4}):([0-9a-fA-F]{4}) ([0-9a-fA-F]{4}):([0-9a-fA-F]{8})", RegexOptions.Compiled);
Dictionary<string, CodeLabel> labels = new Dictionary<string, CodeLabel>();