[Scummvm-cvs-logs] CVS: scummvm/scumm sound.cpp,1.334,1.335
Jonathan Gray
khalek at users.sourceforge.net
Sat Jun 5 05:03:04 CEST 2004
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9674
Modified Files:
sound.cpp
Log Message:
Check if monkey sega cd sounds have already been demangled before trying to do demangle them. Patch #959129 from Jonathan Gevaryahu
Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/sound.cpp,v
retrieving revision 1.334
retrieving revision 1.335
diff -u -d -r1.334 -r1.335
--- sound.cpp 25 Apr 2004 16:54:59 -0000 1.334
+++ sound.cpp 5 Jun 2004 12:02:36 -0000 1.335
@@ -249,7 +249,9 @@
// then a semi-sane VOC header is revealed, with
// a sampling rate of ~25000 Hz (does that make sense?).
// I'll add some code to test that theory for now.
- if (_vm->_gameId == GID_MONKEY_SEGA) {
+
+ // Check if the resource has already been demangled
+ if ((_vm->_gameId == GID_MONKEY_SEGA) && (ptr[0] != 1)) {
for (int i = 0; i < size; i++) {
ptr[i] ^= 0x16;
if (ptr[i] >= 0x7F) {
More information about the Scummvm-git-logs
mailing list