aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2006-10-09 11:06:56 +0000
committerTravis Howell2006-10-09 11:06:56 +0000
commit757fc9467626d548250a9c1fae0b05e54f8bc407 (patch)
tree787ba1b5efdffd997f582bfdd5d42a8f911b704e
parentb2d4d36e8bf954aaa82cb6cadeb07fbc17d569f0 (diff)
downloadscummvm-rg350-757fc9467626d548250a9c1fae0b05e54f8bc407.tar.gz
scummvm-rg350-757fc9467626d548250a9c1fae0b05e54f8bc407.tar.bz2
scummvm-rg350-757fc9467626d548250a9c1fae0b05e54f8bc407.zip
Enable convert code for Amiga CD32 version of Simon1 too
svn-id: r24251
-rw-r--r--engines/agos/res.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/agos/res.cpp b/engines/agos/res.cpp
index 9e961dd1c3..65e278b54e 100644
--- a/engines/agos/res.cpp
+++ b/engines/agos/res.cpp
@@ -708,17 +708,17 @@ void AGOSEngine::loadVGAFile(uint id, uint type) {
}
free(srcBuffer);
} else {
- //if (getGameId() == GID_SIMON1CD32) {
- // dst = (byte *)malloc(dstSize);
- // if (in.read(dst, dstSize) != dstSize)
- // error("loadVGAFile: Read failed");
- // convertAmiga(dst, dstSize);
- // free(dst);
- //} else {
+ if (getGameId() == GID_SIMON1CD32 && type == 2) {
+ dst = (byte *)malloc(dstSize);
+ if (in.read(dst, dstSize) != dstSize)
+ error("loadVGAFile: Read failed");
+ convertAmiga(dst, dstSize);
+ free(dst);
+ } else {
dst = allocBlock(dstSize + extraBuffer);
if (in.read(dst, dstSize) != dstSize)
error("loadVGAFile: Read failed");
- //}
+ }
}
in.close();
} else if (type != 3) {