diff options
author | Travis Howell | 2006-10-09 11:06:56 +0000 |
---|---|---|
committer | Travis Howell | 2006-10-09 11:06:56 +0000 |
commit | 757fc9467626d548250a9c1fae0b05e54f8bc407 (patch) | |
tree | 787ba1b5efdffd997f582bfdd5d42a8f911b704e | |
parent | b2d4d36e8bf954aaa82cb6cadeb07fbc17d569f0 (diff) | |
download | scummvm-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.cpp | 16 |
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) { |