Skip to content

Commit

Permalink
Oops, my bad
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG committed Aug 30, 2023
1 parent 1b89294 commit a723031
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libretro/config/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a723031

Please sign in to comment.