aboutsummaryrefslogtreecommitdiff
path: root/backends/wince/CELauncherDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/wince/CELauncherDialog.cpp')
-rw-r--r--backends/wince/CELauncherDialog.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/backends/wince/CELauncherDialog.cpp b/backends/wince/CELauncherDialog.cpp
index 79c8d1faa1..47eb9aa7fe 100644
--- a/backends/wince/CELauncherDialog.cpp
+++ b/backends/wince/CELauncherDialog.cpp
@@ -142,15 +142,15 @@ void CELauncherDialog::addCandidate(String &path, DetectedGameList &candidates)
ConfMan.set("platform", Common::getPlatformCode(result.platform), domain);
}
-void CELauncherDialog::automaticScanDirectory(const FilesystemNode *node) {
+void CELauncherDialog::automaticScanDirectory(const FilesystemNode &node) {
// First check if we have a recognized game in the current directory
- FSList *files = node->listDir(FilesystemNode::kListFilesOnly);
- DetectedGameList candidates(PluginManager::instance().detectGames(*files));
- addCandidate(node->path(), candidates);
+ FSList files = node.listDir(FilesystemNode::kListFilesOnly);
+ DetectedGameList candidates(PluginManager::instance().detectGames(files));
+ addCandidate(node.path(), candidates);
// Then recurse on the subdirectories
- FSList *dirs = node->listDir(FilesystemNode::kListDirectoriesOnly);
- for (FSList::const_iterator currentDir = dirs->begin(); currentDir != dirs->end(); ++currentDir)
- automaticScanDirectory(&(*currentDir));
+ FSList dirs = node.listDir(FilesystemNode::kListDirectoriesOnly);
+ for (FSList::const_iterator currentDir = dirs.begin(); currentDir != dirs.end(); ++currentDir)
+ automaticScanDirectory(*currentDir);
}