mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 07:39:08 +00:00
HOPKINS: Bumped up savegame version, and added load handling the brief version 3 format
This commit is contained in:
parent
07d8e5643b
commit
ac70aa2e5c
@ -258,6 +258,10 @@ void SaveLoadManager::createThumbnail(Graphics::Surface *s) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SaveLoadManager::syncSavegameData(Common::Serializer &s, int version) {
|
void SaveLoadManager::syncSavegameData(Common::Serializer &s, int version) {
|
||||||
|
// The brief version 3 had the highscores embedded. They're in a separate file now, so skip
|
||||||
|
if (version == 3 && s.isLoading())
|
||||||
|
s.skip(100);
|
||||||
|
|
||||||
s.syncBytes(&_vm->_globals->_saveData->_data[0], 2050);
|
s.syncBytes(&_vm->_globals->_saveData->_data[0], 2050);
|
||||||
syncCharacterLocation(s, _vm->_globals->_saveData->_cloneHopkins);
|
syncCharacterLocation(s, _vm->_globals->_saveData->_cloneHopkins);
|
||||||
syncCharacterLocation(s, _vm->_globals->_saveData->_realHopkins);
|
syncCharacterLocation(s, _vm->_globals->_saveData->_realHopkins);
|
||||||
|
@ -35,7 +35,7 @@ namespace Hopkins {
|
|||||||
|
|
||||||
class HopkinsEngine;
|
class HopkinsEngine;
|
||||||
|
|
||||||
#define HOPKINS_SAVEGAME_VERSION 2
|
#define HOPKINS_SAVEGAME_VERSION 4
|
||||||
|
|
||||||
struct hopkinsSavegameHeader {
|
struct hopkinsSavegameHeader {
|
||||||
uint8 _version;
|
uint8 _version;
|
||||||
|
Loading…
Reference in New Issue
Block a user