TOLTECS: Rename savegame version define
This commit is contained in:
parent
7f78f62467
commit
fc324073d5
1 changed files with 3 additions and 3 deletions
|
@ -51,12 +51,12 @@ namespace Toltecs {
|
|||
- Maybe switch to SCUMM/Tinsel serialization approach?
|
||||
*/
|
||||
|
||||
#define SAVEGAME_VERSION 0 // 0 is dev version until in official SVN
|
||||
#define TOLTECS_SAVEGAME_VERSION 0 // 0 is dev version until in official SVN
|
||||
|
||||
ToltecsEngine::kReadSaveHeaderError ToltecsEngine::readSaveHeader(Common::SeekableReadStream *in, bool loadThumbnail, SaveHeader &header) {
|
||||
|
||||
header.version = in->readUint32LE();
|
||||
if (header.version != SAVEGAME_VERSION)
|
||||
if (header.version != TOLTECS_SAVEGAME_VERSION)
|
||||
return kRSHEInvalidVersion;
|
||||
|
||||
byte descriptionLen = in->readByte();
|
||||
|
@ -90,7 +90,7 @@ void ToltecsEngine::savegame(const char *filename, const char *description) {
|
|||
return;
|
||||
}
|
||||
|
||||
out->writeUint32LE(SAVEGAME_VERSION);
|
||||
out->writeUint32LE(TOLTECS_SAVEGAME_VERSION);
|
||||
|
||||
byte descriptionLen = strlen(description);
|
||||
out->writeByte(descriptionLen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue