mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-07 15:31:02 +00:00
- fixed: Windows must call the wide version of _mkdir for Unicode support.
This commit is contained in:
parent
b99da999a5
commit
d27d2b0e1c
1 changed files with 5 additions and 0 deletions
|
@ -519,7 +519,12 @@ void DoCreatePath(const char *fn)
|
||||||
if ('\0' != *path)
|
if ('\0' != *path)
|
||||||
{
|
{
|
||||||
DoCreatePath(path);
|
DoCreatePath(path);
|
||||||
|
#ifdef _WIN32
|
||||||
|
auto wpath = WideString(path);
|
||||||
|
_wmkdir(wpath.c_str());
|
||||||
|
#else
|
||||||
_mkdir(path);
|
_mkdir(path);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
char path[PATH_MAX];
|
char path[PATH_MAX];
|
||||||
|
|
Loading…
Reference in a new issue