[Scummvm-cvs-logs] CVS: scummvm/gui launcher.cpp,1.39,1.40
Jonathan Gray
khalek at users.sourceforge.net
Sat Jun 14 19:03:05 CEST 2003
Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv28440
Modified Files:
launcher.cpp
Log Message:
remove scumm.h dependency
Index: launcher.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/launcher.cpp,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- launcher.cpp 15 Jun 2003 01:42:13 -0000 1.39
+++ launcher.cpp 15 Jun 2003 02:02:36 -0000 1.40
@@ -33,8 +33,6 @@
#include "common/engine.h"
#include "common/gameDetector.h"
-#include "scumm/scumm.h" // FIXME: this is only for GF_HUMONGOUS and *EVIL*
-
enum {
kStartCmd = 'STRT',
kOptionsCmd = 'OPTN',
@@ -275,6 +273,7 @@
const int size = files->size();
char detectName[128];
char detectName2[128];
+ char detectName3[128];
int i;
// Iterate over all known games and for each check if it might be
@@ -289,23 +288,26 @@
strcpy(detectName, v->detectname);
strcpy(detectName2, v->detectname);
strcat(detectName2, ".");
+ detectName3[0] = '\0';
} else {
strcpy(detectName, v->filename);
strcpy(detectName2, v->filename);
+ strcpy(detectName3, v->filename);
strcat(detectName, ".000");
if (v->version >= 7) {
strcat(detectName2, ".la0");
- } else if (v->features & GF_HUMONGOUS)
- strcat(detectName2, ".he0");
- else
+ } else
strcat(detectName2, ".sm0");
+ strcat(detectName3, ".he0");
}
// Iterate over all files in the given directory
for (i = 0; i < size; i++) {
const char *filename = (*files)[i].displayName().c_str();
- if ((0 == scumm_stricmp(detectName, filename)) || (0 == scumm_stricmp(detectName2, filename))) {
+ if ((0 == scumm_stricmp(detectName, filename)) ||
+ (0 == scumm_stricmp(detectName2, filename)) ||
+ (0 == scumm_stricmp(detectName3, filename))) {
// Match found, add to list of candidates, then abort inner loop.
list.push_back(v);
break;
More information about the Scummvm-git-logs
mailing list