aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/game_v6.cpp
diff options
context:
space:
mode:
authorSven Hesse2008-12-17 13:07:56 +0000
committerSven Hesse2008-12-17 13:07:56 +0000
commitd0e2107b7e07587f732ae1f882b8ddae8c5ef5bd (patch)
treef0d6333ed40ff3be9c7906a49532d441615e55eb /engines/gob/game_v6.cpp
parent774773b7cd02e3c6932095af4905a25eb1862392 (diff)
downloadscummvm-rg350-d0e2107b7e07587f732ae1f882b8ddae8c5ef5bd.tar.gz
scummvm-rg350-d0e2107b7e07587f732ae1f882b8ddae8c5ef5bd.tar.bz2
scummvm-rg350-d0e2107b7e07587f732ae1f882b8ddae8c5ef5bd.zip
Only do the no-cd-workaround if all resource files can be found
svn-id: r35409
Diffstat (limited to 'engines/gob/game_v6.cpp')
-rw-r--r--engines/gob/game_v6.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/gob/game_v6.cpp b/engines/gob/game_v6.cpp
index 0ba232677a..0b764c399e 100644
--- a/engines/gob/game_v6.cpp
+++ b/engines/gob/game_v6.cpp
@@ -25,6 +25,7 @@
#include "common/endian.h"
#include "common/stream.h"
+#include "common/file.h"
#include "gob/gob.h"
#include "gob/game.h"
@@ -154,6 +155,17 @@ int16 Game_v6::addNewCollision(int16 id, uint16 left, uint16 top,
return 0;
}
+void Game_v6::prepareStart(void) {
+ _noCd = false;
+
+ if (Common::File::exists("cd1.itk") && Common::File::exists("cd2.itk") &&
+ Common::File::exists("cd3.itk") && Common::File::exists("cd4.itk")) {
+ _noCd = true;
+ }
+
+ Game_v2::prepareStart();
+}
+
void Game_v6::pushCollisions(char all) {
Collision *srcPtr;
Collision *destPtr;