Replace some calls to fopen with File::OpenCFile (utf8).

This commit is contained in:
Henrik Rydgard committed 2016-01-17 15:59:20 +01:00
1 parent 27c71aa340
commit 3ba911bf07
8 files changed
+12 -14

No files matched your search

+1 -6
View File
@@ -791,12 +791,7 @@ IOFile::~IOFile()
bool IOFile::Open(const std::string& filename, const char openmode[])
{
Close();
#if defined(_WIN32) && defined(UNICODE)
_wfopen_s(&m_file, ConvertUTF8ToWString(filename).c_str(), ConvertUTF8ToWString(openmode).c_str());
#else
m_file = fopen(filename.c_str(), openmode);
#endif
m_file = File::OpenCFile(filename, openmode);
m_good = IsOpen();
return m_good;
}