Example #1
0
        public static void ImportDbgFile(string dbgPath, bool silent = false)
        {
            _symbolProvider = null;

            _symbolProvider = new DbgImporter();
            (_symbolProvider as DbgImporter).Import(dbgPath, silent);
            SymbolProviderChanged?.Invoke(_symbolProvider);
            LabelManager.RefreshLabels();

            SymbolProviderChanged?.Invoke(_symbolProvider);
        }
        public static void ImportDbgFile()
        {
            _symbolProvider = null;

            if (ConfigManager.Config.Debug.DbgIntegration.AutoImport)
            {
                RomInfo romInfo = EmuApi.GetRomInfo();
                string  dbgPath = Path.Combine(((ResourcePath)romInfo.RomPath).Folder, romInfo.GetRomName() + ".dbg");
                if (File.Exists(dbgPath))
                {
                    _symbolProvider = new DbgImporter();
                    _symbolProvider.Import(dbgPath, true);
                    SymbolProviderChanged?.Invoke(_symbolProvider);
                    LabelManager.RefreshLabels();
                }
            }

            SymbolProviderChanged?.Invoke(_symbolProvider);
        }