Skip to content

Commit

Permalink
GameList: Fix bogus entries on disc change due to disc set
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Jul 19, 2024
1 parent 6a920b2 commit d9a224e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/game_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ GameList::GetMatchingEntriesForSerial(const std::span<const std::string> serials

for (const Entry& entry : s_entries)
{
if (entry.serial != serial)
if (entry.IsDiscSet() || entry.serial != serial)
continue;

if (!matching_entry)
Expand All @@ -1409,7 +1409,7 @@ GameList::GetMatchingEntriesForSerial(const std::span<const std::string> serials
// Have to add all matching files.
for (const Entry& entry : s_entries)
{
if (entry.serial != serial)
if (entry.IsDiscSet() || entry.serial != serial)
continue;

ret.emplace_back(Path::GetFileName(entry.path), &entry);
Expand Down

0 comments on commit d9a224e

Please sign in to comment.