mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-06 09:39:49 +00:00
fix saving to Unicode path destination
This commit is contained in:
parent
493f8c6050
commit
9c6224c74d
@ -12,6 +12,8 @@
|
||||
|
||||
#include <OgreImage.h>
|
||||
|
||||
#include <boost/filesystem/fstream.hpp>
|
||||
|
||||
#include "../mwbase/environment.hpp"
|
||||
#include "../mwbase/world.hpp"
|
||||
#include "../mwbase/journal.hpp"
|
||||
@ -187,7 +189,7 @@ void MWState::StateManager::saveGame (const std::string& description, const Slot
|
||||
else
|
||||
slot = mCharacterManager.getCurrentCharacter()->updateSlot (slot, profile);
|
||||
|
||||
std::ofstream stream (slot->mPath.string().c_str(), std::ios::binary);
|
||||
boost::filesystem::ofstream stream (slot->mPath, std::ios::binary);
|
||||
|
||||
ESM::ESMWriter writer;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user