fix loading archive from recent roms (broke in 7a72bf72e6)

This commit is contained in:
zeromus 2018-11-18 10:55:09 -05:00
parent c8265f6c10
commit 63e1bc5511
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}