[Scummvm-cvs-logs] CVS: scummvm/backends/dc selector.cpp,1.10,1.11

Marcus Comstedt marcus_c at users.sourceforge.net
Mon Jul 14 14:30:22 CEST 2003


Update of /cvsroot/scummvm/scummvm/backends/dc
In directory sc8-pr-cvs1:/tmp/cvs-serv6230

Modified Files:
	selector.cpp 
Log Message:
Skip the "INSTALL" directory when looking for games (CoMI).

Index: selector.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/dc/selector.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- selector.cpp	18 Jun 2003 21:15:08 -0000	1.10
+++ selector.cpp	14 Jul 2003 21:29:53 -0000	1.11
@@ -255,7 +255,7 @@
       struct dirent *entry;
       while((entry = readdir(dirp)))
 	if(entry->d_size < 0) {
-	  if(num_dirs < MAX_DIR) {
+	  if(num_dirs < MAX_DIR && strcasecmp(entry->d_name, "install")) {
 	    strcpy(dirs[num_dirs].name, dirs[curr_dir-1].name);
 	    if(strlen(dirs[num_dirs].name)+strlen(entry->d_name)<255) {
 	      strcat(dirs[num_dirs].name, entry->d_name);





More information about the Scummvm-git-logs mailing list