[Scummvm-devel] Simon CD with voc files
Oliver Kiehl
scummvm at okiehl.de
Wed May 29 13:47:01 CEST 2002
Hi,
I've managed to get my version of Simon the Sorcerer to load (without
sound) by applying following patch:
--- simon.cpp.orig Wed May 29 22:29:06 2002
+++ simon.cpp Wed May 29 22:28:30 2002
@@ -19,6 +19,7 @@
*
*/
+#define MY_SIMON
#include "stdafx.h"
#include "scummsys.h"
@@ -8364,7 +8368,11 @@
/* FIXME: not properly implemented */
if (_game & GAME_WIN) {
+#ifndef MY_SIMON
fseek(_game_file, _game_offsets_ptr[gss->MUSIC_INDEX_BASE + music],SEEK_SET);
+#else
+ fseek(_game_file, _game_offsets_ptr[gss->MUSIC_INDEX_BASE + music] - 1,SEEK_SET);
+#endif
f = _game_file;
midi.read_all_songs(f);
It's a rather quick hack. I am not (yet) very fluent in C and I
frankly do not understand most of the source ;), but do know how to
use a debugger ;).
More information about the Scummvm-devel
mailing list