aboutsummaryrefslogtreecommitdiff
path: root/simon/simon.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-11-12 06:44:03 +0000
committerTravis Howell2005-11-12 06:44:03 +0000
commite815c6a8bb40afb3b2c2defa43ee060ff396fed2 (patch)
treec559554905871bf91c39fc0eb712ff2ad7737786 /simon/simon.cpp
parent0f5838976f548f9a72667ffd4af7f6a3d56dd810 (diff)
downloadscummvm-rg350-e815c6a8bb40afb3b2c2defa43ee060ff396fed2.tar.gz
scummvm-rg350-e815c6a8bb40afb3b2c2defa43ee060ff396fed2.tar.bz2
scummvm-rg350-e815c6a8bb40afb3b2c2defa43ee060ff396fed2.zip
Fix simon1cd32 regression.
svn-id: r19566
Diffstat (limited to 'simon/simon.cpp')
-rw-r--r--simon/simon.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index c30809d793..c62c4b3a6b 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -1314,7 +1314,7 @@ void SimonEngine::loadTablesIntoMem(uint subr_id) {
// TODO
} else if (getGameType() == GType_SIMON2) {
_sound->loadSfxTable(_gameFile, _gameOffsetsPtr[atoi(filename + 6) - 1 + SOUND_INDEX_BASE]);
- } else if (getFeatures() & GF_TALKIE) {
+ } else if (getPlatform() == Common::kPlatformWindows) {
memcpy(filename, "SFXXXX", 6);
_sound->readSfxFile(filename);
}
@@ -3562,7 +3562,7 @@ void SimonEngine::talk_with_text(uint vgaSpriteId, uint color, const char *strin
#define SD_TYPE_LITERAL (0)
#define SD_TYPE_MATCH (1)
-static bool decrunch_file_amiga (byte *src, byte *dst, uint32 size) {
+static bool decrunchFile(byte *src, byte *dst, uint32 size) {
byte *s = src + size - 4;
uint32 destlen = READ_BE_UINT32 (s);
uint32 bb, x, y;
@@ -3675,11 +3675,11 @@ void SimonEngine::read_vga_from_datfile_1(uint vga_id) {
error("read_vga_from_datfile_1: can't open %s", buf);
size = in.size();
- if (getPlatform() == Common::kPlatformAmiga) {
+ if (getFeatures() & GF_CRUNCHED) {
byte *buffer = new byte[size];
if (in.read(buffer, size) != size)
error("read_vga_from_datfile_1: read failed");
- decrunch_file_amiga (buffer, _vgaBufferPointers[11].vgaFile2, size);
+ decrunchFile(buffer, _vgaBufferPointers[11].vgaFile2, size);
delete [] buffer;
} else {
if (in.read(_vgaBufferPointers[11].vgaFile2, size) != size)
@@ -3721,12 +3721,12 @@ byte *SimonEngine::read_vga_from_datfile_2(uint id) {
error("read_vga_from_datfile_2: can't open %s", buf);
size = in.size();
- if (getPlatform() == Common::kPlatformAmiga) {
+ if (getFeatures() & GF_CRUNCHED) {
byte *buffer = new byte[size];
if (in.read(buffer, size) != size)
error("read_vga_from_datfile_2: read failed");
dst = setup_vga_destination (READ_BE_UINT32(buffer + size - 4) + extraBuffer);
- decrunch_file_amiga (buffer, dst, size);
+ decrunchFile(buffer, dst, size);
delete[] buffer;
} else {
dst = setup_vga_destination(size + extraBuffer);