mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 12:39:55 +00:00
removed broken save function from ESMWriter
This commit is contained in:
parent
5e64888227
commit
9487bd33c3
@ -67,10 +67,13 @@ void MWState::StateManager::saveGame (const Slot *slot)
|
|||||||
else
|
else
|
||||||
slot = mCharacterManager.getCurrentCharacter()->updateSlot (slot, profile);
|
slot = mCharacterManager.getCurrentCharacter()->updateSlot (slot, profile);
|
||||||
|
|
||||||
|
std::ofstream stream (slot->mPath.string().c_str());
|
||||||
ESM::ESMWriter writer;
|
ESM::ESMWriter writer;
|
||||||
// writer.setFormat ();
|
// writer.setFormat ();
|
||||||
writer.save (slot->mPath.string());
|
writer.save (stream);
|
||||||
|
writer.startRecord ("SAVE");
|
||||||
slot->mProfile.save (writer);
|
slot->mProfile.save (writer);
|
||||||
|
writer.endRecord ("SAVE");
|
||||||
writer.close();
|
writer.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,12 +51,6 @@ namespace ESM
|
|||||||
mHeader.mMaster.push_back(d);
|
mHeader.mMaster.push_back(d);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ESMWriter::save(const std::string& file)
|
|
||||||
{
|
|
||||||
std::ofstream fs(file.c_str(), std::ios_base::out | std::ios_base::trunc);
|
|
||||||
save(fs);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ESMWriter::save(std::ostream& file)
|
void ESMWriter::save(std::ostream& file)
|
||||||
{
|
{
|
||||||
mRecordCount = 0;
|
mRecordCount = 0;
|
||||||
|
@ -36,9 +36,6 @@ class ESMWriter
|
|||||||
|
|
||||||
void addMaster(const std::string& name, uint64_t size);
|
void addMaster(const std::string& name, uint64_t size);
|
||||||
|
|
||||||
void save(const std::string& file);
|
|
||||||
///< Start saving a file by writing the TES3 header.
|
|
||||||
|
|
||||||
void save(std::ostream& file);
|
void save(std::ostream& file);
|
||||||
///< Start saving a file by writing the TES3 header.
|
///< Start saving a file by writing the TES3 header.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user