mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-13 06:25:46 -04:00
GameList: Fix bogus entries on disc change due to disc set
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user