[Scummvm-cvs-logs] CVS: scummvm/backends/fs fs.h,1.3,1.4

Max Horn fingolfin at projects.sourceforge.net
Mon Nov 18 17:37:03 CET 2002


Update of /cvsroot/scummvm/scummvm/backends/fs
In directory sc8-pr-cvs1:/tmp/cvs-serv26509/backends/fs

Modified Files:
	fs.h 
Log Message:
added some preliminary game auto detect code to the launcher; this required a small change to the FS API, Windows/Morphos code will have to be adapted slightly I fear. Also, not all games are detected correctly, and some probably never will be, so we still have to add a dialog for cases where auto detect doesn't work

Index: fs.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/fs/fs.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- fs.h	18 Nov 2002 18:50:11 -0000	1.3
+++ fs.h	19 Nov 2002 01:36:47 -0000	1.4
@@ -68,6 +68,16 @@
 	typedef ScummVM::String String;
 
 public:
+
+	/*
+	 * Flag to tell listDir() which kind of files to list.
+	 */
+	typedef enum {
+		kListFilesOnly = 1,
+		kListDirectoriesOnly = 2,
+		kListAll = 3
+	} ListMode;
+
 	/*
 	 * The starting point for any file system browsing. Returns a special node
 	 * representing the FS root.
@@ -110,7 +120,7 @@
 	 * List the content of this directory node.
 	 * If this node is not a directory, throw an exception or call error().
 	 */
-	virtual FSList *listDir() const = 0;
+	virtual FSList *listDir(ListMode mode = kListDirectoriesOnly) const = 0;
 
 	/*
 	 * The parent node of this directory.





More information about the Scummvm-git-logs mailing list