diff options
author | Marcus Comstedt | 2002-02-18 19:55:37 +0000 |
---|---|---|
committer | Marcus Comstedt | 2002-02-18 19:55:37 +0000 |
commit | 87d96a2c797ac3ef1e8b0da5e2b50878da6c0f9d (patch) | |
tree | 07c2edc47e13c90a700515f88d08950400f031a9 | |
parent | 6c41198027f32148db50f5402fcb53e6ed4ae721 (diff) | |
download | scummvm-rg350-87d96a2c797ac3ef1e8b0da5e2b50878da6c0f9d.tar.gz scummvm-rg350-87d96a2c797ac3ef1e8b0da5e2b50878da6c0f9d.tar.bz2 scummvm-rg350-87d96a2c797ac3ef1e8b0da5e2b50878da6c0f9d.zip |
Recognize Zak256.
svn-id: r3606
-rw-r--r-- | dc/selector.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dc/selector.cpp b/dc/selector.cpp index b79f058752..b1b93d3f45 100644 --- a/dc/selector.cpp +++ b/dc/selector.cpp @@ -151,6 +151,10 @@ static bool isGame(const char *fn, char *base) base[l-4]='\0'; return true; } + if(!strcasecmp(fn, "ZAK.EXP")) { + strcpy(base, "ZAK256"); + return true; + } return false; } @@ -404,7 +408,6 @@ bool selectGame(Scumm *s, char *&ret, Icon &icon) void *mark = ta_txmark(); for(;;) { - num_games = findGames(s, games, MAX_GAMES); for(int i=0; i<num_games; i++) { @@ -433,7 +436,11 @@ bool selectGame(Scumm *s, char *&ret, Icon &icon) delete games; if(selected>=0) { +#if 1 chdir(the_game.dir); +#else + chdir("/"); +#endif ret = the_game.filename_base; icon = the_game.icon; return true; |