Convert Sys_Mkdir from DOS to WinAPI.
With this we're able to create directorys with Unicode characters anywhere in the path.
This commit is contained in:
parent
e8c3686e4c
commit
4ca38f92fa
|
@ -461,8 +461,10 @@ Sys_GetGameAPI(void *parms)
|
||||||
void
|
void
|
||||||
Sys_Mkdir(char *path)
|
Sys_Mkdir(char *path)
|
||||||
{
|
{
|
||||||
// TODO: Use CreateDirectory() instead
|
WCHAR wpath[MAX_OSPATH] = {0};
|
||||||
_mkdir(path);
|
MultiByteToWideChar(CP_UTF8, 0, path, -1, wpath, MAX_OSPATH);
|
||||||
|
|
||||||
|
CreateDirectoryW(wpath, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
|
|
Loading…
Reference in New Issue