|
|
|
@ -11,7 +11,10 @@ void ESM::SavedGame::load (ESMReader &esm)
|
|
|
|
|
{
|
|
|
|
|
mPlayerName = esm.getHNString("PLNA");
|
|
|
|
|
esm.getHNOT (mPlayerLevel, "PLLE");
|
|
|
|
|
mPlayerClassName = esm.getHNString("PLCL");
|
|
|
|
|
|
|
|
|
|
mPlayerClassId = esm.getHNOString("PLCL");
|
|
|
|
|
mPlayerClassName = esm.getHNOString("PLCN");
|
|
|
|
|
|
|
|
|
|
mPlayerCell = esm.getHNString("PLCE");
|
|
|
|
|
esm.getHNT (mInGameTime, "TSTM", 16);
|
|
|
|
|
esm.getHNT (mTimePlayed, "TIME");
|
|
|
|
@ -30,7 +33,12 @@ void ESM::SavedGame::save (ESMWriter &esm) const
|
|
|
|
|
{
|
|
|
|
|
esm.writeHNString ("PLNA", mPlayerName);
|
|
|
|
|
esm.writeHNT ("PLLE", mPlayerLevel);
|
|
|
|
|
esm.writeHNString ("PLCL", mPlayerClassName);
|
|
|
|
|
|
|
|
|
|
if (!mPlayerClassId.empty())
|
|
|
|
|
esm.writeHNString ("PLCL", mPlayerClassId);
|
|
|
|
|
else
|
|
|
|
|
esm.writeHNString ("PLCN", mPlayerClassName);
|
|
|
|
|
|
|
|
|
|
esm.writeHNString ("PLCE", mPlayerCell);
|
|
|
|
|
esm.writeHNT ("TSTM", mInGameTime, 16);
|
|
|
|
|
esm.writeHNT ("TIME", mTimePlayed);
|
|
|
|
|