mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 08:23:53 +00:00
Use the format field instead of version field
(cherry picked from commit a081d402c5
)
This commit is contained in:
parent
b9ba1067bf
commit
05fd4e123e
4 changed files with 6 additions and 4 deletions
|
@ -201,11 +201,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("");
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
void ESM::ObjectState::load (ESMReader &esm)
|
||||
{
|
||||
mVersion = esm.getVer();
|
||||
mVersion = esm.getFormat();
|
||||
|
||||
mRef.loadData(esm);
|
||||
|
||||
|
|
|
@ -5,6 +5,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…
Reference in a new issue