From e368f42254fd66e1504ccbbadb57ec1745f3b698 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 18 Nov 2018 10:58:28 -0500 Subject: [PATCH] probably should not try to set last rom directory when opening al ibretro core --- BizHawk.Client.EmuHawk/MainForm.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs index 2c3d7ee681..2ce8896979 100644 --- a/BizHawk.Client.EmuHawk/MainForm.cs +++ b/BizHawk.Client.EmuHawk/MainForm.cs @@ -3555,8 +3555,11 @@ namespace BizHawk.Client.EmuHawk if(!ret) return false; //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)); + if (args.OpenAdvanced is OpenAdvanced_OpenRom) + { + var leftpart = path.Split('|')[0]; + Global.Config.LastRomPath = Path.GetFullPath(Path.GetDirectoryName(leftpart)); + } return true; }