mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 22:40:50 +00:00
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
1 changed files with 4 additions and 2 deletions
|
@ -461,8 +461,10 @@ Sys_GetGameAPI(void *parms)
|
|||
void
|
||||
Sys_Mkdir(char *path)
|
||||
{
|
||||
// TODO: Use CreateDirectory() instead
|
||||
_mkdir(path);
|
||||
WCHAR wpath[MAX_OSPATH] = {0};
|
||||
MultiByteToWideChar(CP_UTF8, 0, path, -1, wpath, MAX_OSPATH);
|
||||
|
||||
CreateDirectoryW(wpath, NULL);
|
||||
}
|
||||
|
||||
char *
|
||||
|
|
Loading…
Reference in a new issue