diff options
author | Oliver Kiehl | 2002-11-08 13:25:27 +0000 |
---|---|---|
committer | Oliver Kiehl | 2002-11-08 13:25:27 +0000 |
commit | 163b1eeeb52a78bdb7efd7da46cdd8ae104fcf79 (patch) | |
tree | 96be858f21c1962794bf0fe2d7f37d2ecc29c3ac /simon | |
parent | c2b419dacf0f40f9afeb14fa07cbd19ccd8e8bec (diff) | |
download | scummvm-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.cpp | 7 |
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) |