diff options
author | Nicola Mettifogo | 2010-05-21 12:39:54 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2010-05-21 12:39:54 +0000 |
commit | 1c579dc0ace2a1bc7750bdbf9d99d35b48afc168 (patch) | |
tree | 2f69d3ea4b8190d0a107eaed5ff4e425cd66da6c /engines | |
parent | 8b20f16378c377fdcbf14a6b0293154396a6d7b5 (diff) | |
download | scummvm-rg350-1c579dc0ace2a1bc7750bdbf9d99d35b48afc168.tar.gz scummvm-rg350-1c579dc0ace2a1bc7750bdbf9d99d35b48afc168.tar.bz2 scummvm-rg350-1c579dc0ace2a1bc7750bdbf9d99d35b48afc168.zip |
Fix loading of MSC files on big-endian systems. Patch 3004367 by fuzzie.
svn-id: r49128
Diffstat (limited to 'engines')
-rw-r--r-- | engines/parallaction/sound_br.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/sound_br.cpp b/engines/parallaction/sound_br.cpp index 1c724ddc1c..407dd86ec3 100644 --- a/engines/parallaction/sound_br.cpp +++ b/engines/parallaction/sound_br.cpp @@ -172,11 +172,11 @@ bool MidiParser_MSC::loadMusic(byte *data, uint32 size) { byte *pos = data; - uint32 signature = read4high(pos); - if (memcmp("tCSM", &signature, 4)) { + if (memcmp("MSCt", pos, 4)) { warning("Expected header not found in music file."); return false; } + pos += 4; _beats = read1(pos); _ppqn = read2low(pos); |