Skip to content

Commit 1890211

Browse files
committed
fix various RecentRom failures
fixes 02365dc
1 parent 361c308 commit 1890211

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/BizHawk.Client.EmuHawk/MainForm.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3670,9 +3670,6 @@ private bool LoadRomInternal(string path, LoadRomArgs args, out bool failureIsFr
36703670
launchLibretroCore: ioaRetro?.CorePath,
36713671
forcedCoreName: forcedCoreName);
36723672

3673-
var openAdvancedArgs = $"*{OpenAdvancedSerializer.Serialize(ioa)}";
3674-
Config.RecentRoms.Add(openAdvancedArgs);
3675-
36763673
// we need to replace the path in the OpenAdvanced with the canonical one the user chose.
36773674
// It can't be done until loader.LoadRom happens (for CanonicalFullPath)
36783675
// i'm not sure this needs to be more abstractly engineered yet until we have more OpenAdvanced examples
@@ -3691,6 +3688,9 @@ private bool LoadRomInternal(string path, LoadRomArgs args, out bool failureIsFr
36913688
oaMame.Path = loader.CanonicalFullPath;
36923689
}
36933690

3691+
var openAdvancedArgs = $"*{OpenAdvancedSerializer.Serialize(ioa)}";
3692+
Config.RecentRoms.Add(openAdvancedArgs);
3693+
36943694
if (result)
36953695
{
36963696
Emulator.Dispose();

0 commit comments

Comments
 (0)