[Scummvm-cvs-logs] CVS: scummvm/backends/wince CELauncherDialog.cpp,1.7,1.8 CELauncherDialog.h,1.2,1.3

Max Horn fingolfin at users.sourceforge.net
Fri Nov 26 17:00:46 CET 2004


Update of /cvsroot/scummvm/scummvm/backends/wince
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16783/wince

Modified Files:
	CELauncherDialog.cpp CELauncherDialog.h 
Log Message:
Trying to fix the WinCE/DC port breakage -- blindfolded, though, hence it probably isn't enough to get things compiling again :-/

Index: CELauncherDialog.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/CELauncherDialog.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- CELauncherDialog.cpp	11 Aug 2004 21:49:57 -0000	1.7
+++ CELauncherDialog.cpp	26 Nov 2004 21:10:56 -0000	1.8
@@ -142,15 +142,15 @@
 		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);
 
 }
 

Index: CELauncherDialog.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/CELauncherDialog.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- CELauncherDialog.h	3 Mar 2004 22:31:28 -0000	1.2
+++ CELauncherDialog.h	26 Nov 2004 21:10:56 -0000	1.3
@@ -36,7 +36,7 @@
 protected:
 	void addGame();
 	void addCandidate(String &path, DetectedGameList &candidates);
-	void automaticScanDirectory(const FilesystemNode *node);
+	void automaticScanDirectory(const FilesystemNode &node);
 };
 
 typedef GUI::LauncherDialog GUILauncherDialog;





More information about the Scummvm-git-logs mailing list