public static void ImportSymFile(string symPath, bool silent = false) { if (ConfigManager.Config.Debug.DbgIntegration.ResetLabelsOnImport) { ResetLabels(); } string symContent = File.ReadAllText(symPath); if (symContent.Contains("[labels]")) { //Assume WLA-DX symbol files new WlaDxImporter().Import(symPath, silent); } else { RomInfo romInfo = EmuApi.GetRomInfo(); if (romInfo.CoprocessorType == CoprocessorType.Gameboy) { if (RgbdsSymbolFile.IsValidFile(symPath)) { RgbdsSymbolFile.Import(symPath, silent); } else { BassLabelFile.Import(symPath, silent); } } else { BassLabelFile.Import(symPath, silent); } } LabelManager.RefreshLabels(); }
public static void ImportSymFile(string symPath, bool silent = false) { if (ConfigManager.Config.Debug.DbgIntegration.ResetLabelsOnImport) { ResetLabels(); } string symContent = File.ReadAllText(symPath); if (symContent.Contains("[labels]")) { //Assume WLA-DX symbol files new WlaDxImporter().Import(symPath, silent); } else { BassLabelFile.Import(symPath, silent); } LabelManager.RefreshLabels(); }