From 63e1bc5511480bd655de80c93bbd5096b559449b Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 18 Nov 2018 10:55:09 -0500 Subject: [PATCH] fix loading archive from recent roms (broke in 7a72bf72e6b110165d30df9e8dad8408408d6a5a) --- BizHawk.Client.EmuHawk/MainForm.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs index 3d2d80c2e8..2c3d7ee681 100644 --- a/BizHawk.Client.EmuHawk/MainForm.cs +++ b/BizHawk.Client.EmuHawk/MainForm.cs @@ -3553,7 +3553,11 @@ namespace BizHawk.Client.EmuHawk { bool ret = _LoadRom(path, args); if(!ret) return false; - Global.Config.LastRomPath = Path.GetFullPath(Path.GetDirectoryName(path)); + + //what's the meaning of the last rom path when opening an archive? based on the archive file location + var leftpart = path.Split('|')[0]; + Global.Config.LastRomPath = Path.GetFullPath(Path.GetDirectoryName(leftpart)); + return true; }