diff options
author | Filippos Karapetis | 2009-12-27 12:21:12 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-12-27 12:21:12 +0000 |
commit | 6af32b5b3a5c2bf5cb96c91c8abc3dbfd7589f7f (patch) | |
tree | 94c4fba7b541738100ae3422a0955f12ea85b6e1 | |
parent | e6ad7523c8acdd1bf0fc37e841da627f568d6fcd (diff) | |
download | scummvm-rg350-6af32b5b3a5c2bf5cb96c91c8abc3dbfd7589f7f.tar.gz scummvm-rg350-6af32b5b3a5c2bf5cb96c91c8abc3dbfd7589f7f.tar.bz2 scummvm-rg350-6af32b5b3a5c2bf5cb96c91c8abc3dbfd7589f7f.zip |
Really fixed compilation
svn-id: r46630
-rw-r--r-- | engines/sci/engine/savegame.cpp | 6 | ||||
-rw-r--r-- | engines/sci/sfx/music.h | 9 |
2 files changed, 10 insertions, 5 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 054f1124dd..cee1825b0b 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -615,10 +615,8 @@ static void sync_songlib(Common::Serializer &s, SongLibrary &obj) { } } } -#endif - +#else void SciMusic::saveLoadWithSerializer(Common::Serializer &s) { -#ifndef USE_OLD_MUSIC_FUNCTIONS // Sync song lib data. When loading, the actual song lib will be initialized // afterwards in gamestate_restore() _mutex.lock(); @@ -643,8 +641,8 @@ void SciMusic::saveLoadWithSerializer(Common::Serializer &s) { } _mutex.unlock(); -#endif } +#endif #pragma mark - diff --git a/engines/sci/sfx/music.h b/engines/sci/sfx/music.h index 574dc15e6f..ff2c27e8d3 100644 --- a/engines/sci/sfx/music.h +++ b/engines/sci/sfx/music.h @@ -86,7 +86,12 @@ struct MusicEntry { typedef Common::Array<MusicEntry *> MusicList; -class SciMusic : public Common::Serializable { +class SciMusic +#ifndef USE_OLD_MUSIC_FUNCTIONS + : public Common::Serializable +#endif +{ + public: SciMusic(SciVersion soundVersion); ~SciMusic(); @@ -136,7 +141,9 @@ public: void reconstructSounds(int savegame_version); +#ifndef USE_OLD_MUSIC_FUNCTIONS virtual void saveLoadWithSerializer(Common::Serializer &ser); +#endif protected: byte findAudEntry(uint16 nAud, byte&oVolume, uint32& oOffset, uint32&oSize); |