Oops, my bad

This commit is contained in:
Jesse Talavera-Greenberg 2023-08-30 18:57:56 -04:00
parent 1b89294075
commit a723031bc4

View File

@ -1113,11 +1113,12 @@ static bool LoadBios(const string_view& name, const string& type, u8* buffer, si
return true;
};
// Prefer looking in "system/melonDS DS/${name}", but fall back to "system/${name}" if that fails
if (optional<string> path = retro::get_system_subdir_path(name); path && LoadBiosImpl(*path)) {
return true;
}
if (optional<string> path = retro::get_system_path(name); path || !LoadBiosImpl(*path)) {
if (optional<string> path = retro::get_system_path(name); path && LoadBiosImpl(*path)) {
return true;
}