1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 13:12:50 +00:00

removed broken save function from ESMWriter

This commit is contained in:
Marc Zinnschlag 2013-11-19 16:07:36 +01:00
parent 5e64888227
commit 9487bd33c3
3 changed files with 4 additions and 10 deletions

View File

@ -67,10 +67,13 @@ void MWState::StateManager::saveGame (const Slot *slot)
else
slot = mCharacterManager.getCurrentCharacter()->updateSlot (slot, profile);
std::ofstream stream (slot->mPath.string().c_str());
ESM::ESMWriter writer;
// writer.setFormat ();
writer.save (slot->mPath.string());
writer.save (stream);
writer.startRecord ("SAVE");
slot->mProfile.save (writer);
writer.endRecord ("SAVE");
writer.close();
}

View File

@ -51,12 +51,6 @@ namespace ESM
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)
{
mRecordCount = 0;

View File

@ -36,9 +36,6 @@ class ESMWriter
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);
///< Start saving a file by writing the TES3 header.