Debugger: Allow empty labels in MLB files (e.g code comments)

This commit is contained in:
Sour 2019-02-22 17:21:12 -05:00
parent 5f5459c4c4
commit ddc7d9fa97

View file

@ -74,7 +74,7 @@ namespace Mesen.GUI.Debugger
}
string labelName = rowData[2];
if(!LabelManager.LabelRegex.IsMatch(labelName)) {
if(!string.IsNullOrEmpty(labelName) && !LabelManager.LabelRegex.IsMatch(labelName)) {
//Reject labels that don't respect the label naming restrictions
errorCount++;
continue;