diff options
| author | Max Horn | 2004-11-26 21:10:56 +0000 |
|---|---|---|
| committer | Max Horn | 2004-11-26 21:10:56 +0000 |
| commit | a0c4e81d74616147d3a5f4eed29ad47b753e2578 (patch) | |
| tree | 573af415f23129fcdd52f38ec51ac99f7238b7fc /backends/wince | |
| parent | 0d27b23efdeeaead3ec57126bddea6621d53e2cd (diff) | |
| download | scummvm-rg350-a0c4e81d74616147d3a5f4eed29ad47b753e2578.tar.gz scummvm-rg350-a0c4e81d74616147d3a5f4eed29ad47b753e2578.tar.bz2 scummvm-rg350-a0c4e81d74616147d3a5f4eed29ad47b753e2578.zip | |
Trying to fix the WinCE/DC port breakage -- blindfolded, though, hence it probably isn't enough to get things compiling again :-/
svn-id: r15897
Diffstat (limited to 'backends/wince')
| -rw-r--r-- | backends/wince/CELauncherDialog.cpp | 14 | ||||
| -rw-r--r-- | backends/wince/CELauncherDialog.h | 2 |
2 files changed, 8 insertions, 8 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); } diff --git a/backends/wince/CELauncherDialog.h b/backends/wince/CELauncherDialog.h index 6617b0250b..43865d9c05 100644 --- a/backends/wince/CELauncherDialog.h +++ b/backends/wince/CELauncherDialog.h @@ -36,7 +36,7 @@ public: protected: void addGame(); void addCandidate(String &path, DetectedGameList &candidates); - void automaticScanDirectory(const FilesystemNode *node); + void automaticScanDirectory(const FilesystemNode &node); }; typedef GUI::LauncherDialog GUILauncherDialog; |
