From 8a9f185f5d741a4dfd84b59e48c182d034b54b63 Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Mon, 21 Apr 2025 14:23:06 +0200 Subject: [PATCH] Fix HexEditor rom path handling `Config.RecentRoms.MostRecent` is not a path apparently --- src/BizHawk.Client.EmuHawk/tools/HexEditor/HexEditor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/HexEditor/HexEditor.cs b/src/BizHawk.Client.EmuHawk/tools/HexEditor/HexEditor.cs index d0a99bc0e1..7a48afa699 100644 --- a/src/BizHawk.Client.EmuHawk/tools/HexEditor/HexEditor.cs +++ b/src/BizHawk.Client.EmuHawk/tools/HexEditor/HexEditor.cs @@ -904,7 +904,7 @@ namespace BizHawk.Client.EmuHawk { get { - string path = Config.RecentRoms.MostRecent; + string path = MainForm.CurrentlyOpenRomArgs.OpenAdvanced.SimplePath; if (string.IsNullOrWhiteSpace(path)) { @@ -918,7 +918,7 @@ namespace BizHawk.Client.EmuHawk { get { - string path = Config.RecentRoms.MostRecent; + string path = MainForm.CurrentlyOpenRomArgs.OpenAdvanced.SimplePath; if (string.IsNullOrWhiteSpace(path)) { @@ -1312,7 +1312,7 @@ namespace BizHawk.Client.EmuHawk discardCWDChange: false, filter: TextTablesFSFilterSet, initDir: Config!.PathEntries.ToolsAbsolutePath(), - initFileName: $"{Path.GetFileNameWithoutExtension(Config.RecentRoms.MostRecent.SubstringAfterLast('|'))}.tbl"); + initFileName: $"{Path.GetFileNameWithoutExtension(MainForm.CurrentlyOpenRomArgs.OpenAdvanced.SimplePath.SubstringAfterLast('|'))}.tbl"); if (result is null) return; LoadTable(result); RecentTables.Add(result);