parent
06dfb7e803
commit
8ab97a959c
8 changed files with 35 additions and 10 deletions
12
src/fileutils.cpp
Normal file
12
src/fileutils.cpp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include "fileutils.h"
|
||||
#ifdef _WIN32
|
||||
#include "utfutils.h"
|
||||
#endif
|
||||
|
||||
FILE* ps_fopen(const char* path, const char* mode) {
|
||||
#ifdef _WIN32
|
||||
return _wfopen(utf8To16(path).c_str(),utf8To16(mode).c_str());
|
||||
#else
|
||||
return fopen(path,mode);
|
||||
#endif
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue