WAGE: Update saves format
Offset is added in the end of the file, so ScummVM would know where to look for description, version, thumbnail information.
This commit is contained in:
parent
f58abd9540
commit
ef631c9e75
2 changed files with 18 additions and 3 deletions
|
@ -335,6 +335,10 @@ int WageEngine::saveGame(const Common::String &fileName, const Common::String &d
|
|||
}
|
||||
|
||||
// the following is appended by ScummVM
|
||||
int32 appendixOffset = out->pos();
|
||||
if (appendixOffset < 0) {
|
||||
warning("OutSaveFile::pos() failed");
|
||||
}
|
||||
out->writeUint32BE(WAGEflag);
|
||||
|
||||
// Write description of saved game, limited to WAGE_SAVEDGAME_DESCRIPTION_LEN characters + terminating NUL
|
||||
|
@ -352,6 +356,8 @@ int WageEngine::saveGame(const Common::String &fileName, const Common::String &d
|
|||
// Thumbnail
|
||||
Graphics::saveThumbnail(*out);
|
||||
|
||||
out->writeUint32BE(appendixOffset);
|
||||
|
||||
// this one to make checking easier:
|
||||
// it couldn't be added to the beginning
|
||||
// and we won't be able to find it in the middle,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue