Open std::fstream in a unicode-safe manner.

This commit is contained in:
Jordan Woyak
2013-02-28 19:33:39 -06:00
parent 95558cdc69
commit dea1e2827d
19 changed files with 57 additions and 25 deletions

View File

@ -69,7 +69,8 @@ bool SaveTGA(const char* filename, int width, int height, void* pdata)
bool SaveData(const char* filename, const char* data)
{
std::ofstream f(filename, std::ios::binary);
std::ofstream f;
OpenFStream(f, filename, std::ios::binary);
f << data;
return true;