|
@@ -23,7 +23,7 @@ namespace BansheeEngine
|
|
|
if (!FileSystem::exists(parentDir))
|
|
if (!FileSystem::exists(parentDir))
|
|
|
FileSystem::createDir(parentDir);
|
|
FileSystem::createDir(parentDir);
|
|
|
|
|
|
|
|
- mOutputStream.open(fileLocation.toWString().c_str(), std::ios::out | std::ios::binary);
|
|
|
|
|
|
|
+ mOutputStream.open(fileLocation.toPlatformString().c_str(), std::ios::out | std::ios::binary);
|
|
|
if (mOutputStream.fail())
|
|
if (mOutputStream.fail())
|
|
|
{
|
|
{
|
|
|
LOGWRN("Failed to save file: \"" + fileLocation.toString() + "\". Error: " + strerror(errno) + ".");
|
|
LOGWRN("Failed to save file: \"" + fileLocation.toString() + "\". Error: " + strerror(errno) + ".");
|
|
@@ -100,4 +100,4 @@ namespace BansheeEngine
|
|
|
mInputStream->read(&objectSize, sizeof(objectSize));
|
|
mInputStream->read(&objectSize, sizeof(objectSize));
|
|
|
mInputStream->skip(objectSize);
|
|
mInputStream->skip(objectSize);
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
+}
|