Fixing up Windows build.

This commit is contained in:
jamgroga 2021-09-26 21:42:35 +01:00
parent 32ace0fcac
commit 5d32592126
22 changed files with 247994 additions and 53 deletions

View file

@ -1,6 +1,7 @@
#include "File.h"
#include "FileLogger.h"
#include <streambuf>
#include <fstream>
File::File(std::filesystem::path path)
: mFullPath(path),
@ -38,7 +39,7 @@ void File::Open(bool asBinary)
auto flags = std::ifstream::in;
if (asBinary)
{
flags |= std::ifstream::binary;
//flags |= std::ifstream::binary;
}
mInHandle = std::make_unique<std::ifstream>();
mInHandle->open(mFullPath, flags);
@ -48,7 +49,7 @@ void File::Open(bool asBinary)
auto flags = std::ofstream::out;
if (asBinary)
{
flags |= std::ofstream::binary;
//flags |= std::ofstream::binary;
}
mOutHandle = std::make_unique<std::ofstream>();
mOutHandle->open(mFullPath, flags);