Enable convert code for Amiga CD32 version of Simon1 too

svn-id: r24251
This commit is contained in:
Travis Howell 2006-10-09 11:06:56 +00:00
parent b2d4d36e8b
commit 757fc94676

View File

@ -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) {