mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Minimal error handling for Sys_Mkdir() under unixlike platforms.
This commit is contained in:
parent
8e223b2743
commit
60d881437b
1 changed files with 7 additions and 1 deletions
|
@ -434,7 +434,13 @@ Sys_GetGameAPI(void *parms)
|
|||
void
|
||||
Sys_Mkdir(const char *path)
|
||||
{
|
||||
mkdir(path, 0755);
|
||||
if (!Sys_IsDir(path))
|
||||
{
|
||||
if (mkdir(path, 0755) != 0)
|
||||
{
|
||||
Com_Error(ERR_FATAL, "Couldn't create dir %s\n", path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
qboolean
|
||||
|
|
Loading…
Reference in a new issue