Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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();
        }