mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-28 13:55:44 -04:00
GameList: Fix non-recursive scanning
This commit is contained in:
parent
0639f4264f
commit
e66214d93e
@ -292,7 +292,7 @@ void GameList::ScanDirectory(const char* path, bool recursive)
|
||||
Log_DevPrintf("Scanning %s%s", path, recursive ? " (recursively)" : "");
|
||||
|
||||
FileSystem::FindResultsArray files;
|
||||
FileSystem::FindFiles(path, "*", FILESYSTEM_FIND_FILES | FILESYSTEM_FIND_RECURSIVE, &files);
|
||||
FileSystem::FindFiles(path, "*", FILESYSTEM_FIND_FILES | (recursive ? FILESYSTEM_FIND_RECURSIVE : 0), &files);
|
||||
|
||||
GameListEntry entry;
|
||||
for (const FILESYSTEM_FIND_DATA& ffd : files)
|
||||
|
Loading…
x
Reference in New Issue
Block a user