mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-23 04:33:09 +00:00
Enable convert code for Amiga CD32 version of Simon1 too
svn-id: r24251
This commit is contained in:
parent
b2d4d36e8b
commit
757fc94676
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user