1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

Use the format field instead of version field

This commit is contained in:
scrawl 2015-06-30 17:26:33 +02:00
parent 4637750601
commit a081d402c5
4 changed files with 6 additions and 4 deletions

View file

@ -216,11 +216,10 @@ void MWState::StateManager::saveGame (const std::string& description, const Slot
++iter)
writer.addMaster (*iter, 0); // not using the size information anyway -> use value of 0
writer.setFormat (ESM::Header::CurrentFormat);
writer.setVersion(1);
writer.setFormat (ESM::SavedGame::sCurrentFormat);
// all unused
writer.setVersion(0);
writer.setType(0);
writer.setAuthor("");
writer.setDescription("");

View file

@ -6,7 +6,7 @@
void ESM::ObjectState::load (ESMReader &esm)
{
mVersion = esm.getVer();
mVersion = esm.getFormat();
mRef.loadData(esm);

View file

@ -6,6 +6,7 @@
#include "defs.hpp"
unsigned int ESM::SavedGame::sRecordId = ESM::REC_SAVE;
int ESM::SavedGame::sCurrentFormat = 1;
void ESM::SavedGame::load (ESMReader &esm)
{

View file

@ -15,6 +15,8 @@ namespace ESM
{
static unsigned int sRecordId;
static int sCurrentFormat;
struct TimeStamp
{
float mGameHour;