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) ++iter)
writer.addMaster (*iter, 0); // not using the size information anyway -> use value of 0 writer.addMaster (*iter, 0); // not using the size information anyway -> use value of 0
writer.setFormat (ESM::Header::CurrentFormat); writer.setFormat (ESM::SavedGame::sCurrentFormat);
writer.setVersion(1);
// all unused // all unused
writer.setVersion(0);
writer.setType(0); writer.setType(0);
writer.setAuthor(""); writer.setAuthor("");
writer.setDescription(""); writer.setDescription("");

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

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

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

Loading…
Cancel
Save