Fix #3224 Win7+ shell "jump list" no longer working

fixes 7a7522f28
This commit is contained in:
YoshiRulz 2022-05-02 12:35:44 +10:00
parent 49399fce20
commit 53240c2f84
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 3 additions and 2 deletions

View File

@ -506,8 +506,9 @@ namespace BizHawk.Client.EmuHawk
if (_argParser.cmdRom != null)
{
// Commandline should always override auto-load
var romPath = _argParser.cmdRom.MakeAbsolute();
LoadRom(romPath, new LoadRomArgs { OpenAdvanced = OpenAdvancedSerializer.ParseWithLegacy(romPath) });
var ioa = OpenAdvancedSerializer.ParseWithLegacy(_argParser.cmdRom);
if (ioa is OpenAdvanced_OpenRom oaor) ioa = new OpenAdvanced_OpenRom { Path = oaor.Path.MakeAbsolute() }; // fixes #3224; should this be done for all the IOpenAdvanced types? --yoshi
LoadRom(ioa.SimplePath, new LoadRomArgs { OpenAdvanced = ioa });
if (Game == null)
{
ShowMessageBox(owner: null, $"Failed to load {_argParser.cmdRom} specified on commandline");