mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 13:45:42 -04: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)
|
for (const Entry& entry : s_entries)
|
||||||
{
|
{
|
||||||
if (entry.serial != serial)
|
if (entry.IsDiscSet() || entry.serial != serial)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!matching_entry)
|
if (!matching_entry)
|
||||||
@ -1409,7 +1409,7 @@ GameList::GetMatchingEntriesForSerial(const std::span<const std::string> serials
|
|||||||
// Have to add all matching files.
|
// Have to add all matching files.
|
||||||
for (const Entry& entry : s_entries)
|
for (const Entry& entry : s_entries)
|
||||||
{
|
{
|
||||||
if (entry.serial != serial)
|
if (entry.IsDiscSet() || entry.serial != serial)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ret.emplace_back(Path::GetFileName(entry.path), &entry);
|
ret.emplace_back(Path::GetFileName(entry.path), &entry);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user