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); free(srcBuffer);
} else { } else {
//if (getGameId() == GID_SIMON1CD32) { if (getGameId() == GID_SIMON1CD32 && type == 2) {
// dst = (byte *)malloc(dstSize); dst = (byte *)malloc(dstSize);
// if (in.read(dst, dstSize) != dstSize) if (in.read(dst, dstSize) != dstSize)
// error("loadVGAFile: Read failed"); error("loadVGAFile: Read failed");
// convertAmiga(dst, dstSize); convertAmiga(dst, dstSize);
// free(dst); free(dst);
//} else { } else {
dst = allocBlock(dstSize + extraBuffer); dst = allocBlock(dstSize + extraBuffer);
if (in.read(dst, dstSize) != dstSize) if (in.read(dst, dstSize) != dstSize)
error("loadVGAFile: Read failed"); error("loadVGAFile: Read failed");
//} }
} }
in.close(); in.close();
} else if (type != 3) { } else if (type != 3) {