aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicola Mettifogo2010-05-21 12:39:54 +0000
committerNicola Mettifogo2010-05-21 12:39:54 +0000
commit1c579dc0ace2a1bc7750bdbf9d99d35b48afc168 (patch)
tree2f69d3ea4b8190d0a107eaed5ff4e425cd66da6c
parent8b20f16378c377fdcbf14a6b0293154396a6d7b5 (diff)
downloadscummvm-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
-rw-r--r--engines/parallaction/sound_br.cpp4
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);