From c6f8ab4276e1eaddab6c8cd55c1918f6c77040a4 Mon Sep 17 00:00:00 2001 From: Sour Date: Wed, 10 Jul 2019 22:50:40 -0400 Subject: [PATCH] Debugger: Fixed UI crash when using debug tools while the loaded rom is inside a zip/7z file --- UI/Debugger/Workspace/DebugWorkspaceManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/Debugger/Workspace/DebugWorkspaceManager.cs b/UI/Debugger/Workspace/DebugWorkspaceManager.cs index 1282382..c6598e6 100644 --- a/UI/Debugger/Workspace/DebugWorkspaceManager.cs +++ b/UI/Debugger/Workspace/DebugWorkspaceManager.cs @@ -1,6 +1,7 @@ using Mesen.GUI.Config; using Mesen.GUI.Debugger.Integration; using Mesen.GUI.Debugger.Labels; +using Mesen.GUI.Forms; using System; using System.Collections.Generic; using System.IO; @@ -101,7 +102,7 @@ namespace Mesen.GUI.Debugger.Workspace if(ConfigManager.Config.Debug.DbgIntegration.AutoImport) { RomInfo romInfo = EmuApi.GetRomInfo(); - string dbgPath = Path.Combine(Path.GetDirectoryName(romInfo.RomPath), romInfo.GetRomName() + ".dbg"); + string dbgPath = Path.Combine(((ResourcePath)romInfo.RomPath).Folder, romInfo.GetRomName() + ".dbg"); if(File.Exists(dbgPath)) { _symbolProvider = new DbgImporter(); _symbolProvider.Import(dbgPath, true);