Use the format field instead of version field

c++11
scrawl 10 years ago
parent 4637750601
commit a081d402c5

@ -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("");

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

@ -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)
{

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

Loading…
Cancel
Save