mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 13:55:38 +00:00
GameList: Fix bogus entries on disc change due to disc set
This commit is contained in:
parent
6a920b268e
commit
d9a224ef6c
|
@ -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)
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue