aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorOliver Kiehl2002-11-08 13:25:27 +0000
committerOliver Kiehl2002-11-08 13:25:27 +0000
commit163b1eeeb52a78bdb7efd7da46cdd8ae104fcf79 (patch)
tree96be858f21c1962794bf0fe2d7f37d2ecc29c3ac /simon
parentc2b419dacf0f40f9afeb14fa07cbd19ccd8e8bec (diff)
downloadscummvm-rg350-163b1eeeb52a78bdb7efd7da46cdd8ae104fcf79.tar.gz
scummvm-rg350-163b1eeeb52a78bdb7efd7da46cdd8ae104fcf79.tar.bz2
scummvm-rg350-163b1eeeb52a78bdb7efd7da46cdd8ae104fcf79.zip
big endian fix
svn-id: r5465
Diffstat (limited to 'simon')
-rw-r--r--simon/simon.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 10110d97c0..c777827b00 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -3329,6 +3329,13 @@ void SimonState::readSfxFile(const char *filename)
_effects_offsets[i] += offs;
}
}
+#if defined(SCUMM_BIG_ENDIAN)
+ uint r;
+ if (_effects_offsets) {
+ for (r = 0; r < gss->NUM_EFFECTS_RESOURCES; r++)
+ _effects_offsets[r] = READ_LE_UINT32(&_effects_offsets[r]);
+ }
+#endif
}
void SimonState::video_putchar(FillOrCopyStruct *fcs, byte c)