mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Replace some calls to fopen with File::OpenCFile (utf8).
This commit is contained in:
1 parent
27c71aa340
commit
3ba911bf07
8 files changed
+12
-14
No files matched your search
+1
-6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user