mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 07:07:10 +00:00
SCI: fixing saved game compatibility
svn-id: r46827
This commit is contained in:
parent
5b9409859b
commit
385c462352
@ -133,11 +133,11 @@ void MusicEntry::saveLoadWithSerializer(Common::Serializer &s) {
|
||||
s.syncAsSint16LE(resnum);
|
||||
s.syncAsSint16LE(dataInc);
|
||||
s.syncAsSint16LE(ticker);
|
||||
s.syncAsSint16LE(signal);
|
||||
s.syncAsSint16LE(signal, VER(17));
|
||||
s.syncAsByte(prio);
|
||||
s.syncAsSint16LE(loop);
|
||||
s.syncAsSint16LE(loop, VER(17));
|
||||
s.syncAsByte(volume);
|
||||
s.syncAsByte(hold);
|
||||
s.syncAsByte(hold, VER(17));
|
||||
s.syncAsByte(fadeTo);
|
||||
s.syncAsSint16LE(fadeStep);
|
||||
s.syncAsSint32LE(fadeTicker);
|
||||
@ -630,10 +630,11 @@ void SciMusic::saveLoadWithSerializer(Common::Serializer &s) {
|
||||
s.syncAsByte(_soundOn);
|
||||
s.syncAsByte(masterVolume);
|
||||
} else if (s.isLoading()) {
|
||||
if (s.getVersion() >= 14) {
|
||||
if (s.getVersion() >= 15) {
|
||||
s.syncAsByte(_soundOn);
|
||||
s.syncAsByte(masterVolume);
|
||||
s.syncAsByte(_reverb);
|
||||
_reverb = 0;
|
||||
s.syncAsByte(_reverb, VER(17));
|
||||
} else {
|
||||
_soundOn = true;
|
||||
masterVolume = 15;
|
||||
|
@ -36,7 +36,7 @@ namespace Sci {
|
||||
struct EngineState;
|
||||
|
||||
enum {
|
||||
CURRENT_SAVEGAME_VERSION = 14,
|
||||
CURRENT_SAVEGAME_VERSION = 17,
|
||||
MINIMUM_SAVEGAME_VERSION = 9
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user