diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/wince/CELauncherDialog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/wince/CELauncherDialog.cpp b/backends/wince/CELauncherDialog.cpp index 243b5e5ea3..99bb82e47e 100644 --- a/backends/wince/CELauncherDialog.cpp +++ b/backends/wince/CELauncherDialog.cpp @@ -145,11 +145,13 @@ void CELauncherDialog::addCandidate(String &path, DetectedGameList &candidates) void CELauncherDialog::automaticScanDirectory(const FilesystemNode &node) { // First check if we have a recognized game in the current directory - FSList files = node.listDir(FilesystemNode::kListFilesOnly); + FSList files; + node.listDir(files, FilesystemNode::kListFilesOnly); DetectedGameList candidates(PluginManager::instance().detectGames(files)); addCandidate(node.path(), candidates); // Then recurse on the subdirectories - FSList dirs = node.listDir(FilesystemNode::kListDirectoriesOnly); + FSList dirs; + node.listDir(dirs, FilesystemNode::kListDirectoriesOnly); for (FSList::const_iterator currentDir = dirs.begin(); currentDir != dirs.end(); ++currentDir) automaticScanDirectory(*currentDir); |