From 163b1eeeb52a78bdb7efd7da46cdd8ae104fcf79 Mon Sep 17 00:00:00 2001 From: Oliver Kiehl Date: Fri, 8 Nov 2002 13:25:27 +0000 Subject: big endian fix svn-id: r5465 --- simon/simon.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'simon') 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) -- cgit v1.2.3