Only offer to remove recent rom if it doesn't exist (fixes #3006)

This commit is contained in:
YoshiRulz 2022-05-07 13:42:11 +10:00
parent d90166e1ed
commit cb42e8c4dc
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 0 deletions

View File

@ -2149,6 +2149,7 @@ namespace BizHawk.Client.EmuHawk
if (!LoadRom(romPath, args, out var failureIsFromAskSave))
{
if (failureIsFromAskSave) AddOnScreenMessage("ROM loading cancelled; a tool had unsaved changes");
else if (ioa is OpenAdvanced_LibretroNoGame || File.Exists(romPath)) AddOnScreenMessage("ROM loading failed");
else Config.RecentRoms.HandleLoadError(this, romPath, rom);
}
}