mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-03 22:41:16 +00:00
Implement Sys_GetCurrentDirectory()
This commit is contained in:
parent
c5cdccb97f
commit
dc209c40f2
1 changed files with 13 additions and 0 deletions
|
@ -638,6 +638,19 @@ Sys_Mkdir(char *path)
|
||||||
_mkdir(path);
|
_mkdir(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char *
|
||||||
|
Sys_GetCurrentDirectory(void)
|
||||||
|
{
|
||||||
|
static char dir[MAX_OSPATH];
|
||||||
|
|
||||||
|
if (!_getcwd(dir, sizeof(dir)))
|
||||||
|
{
|
||||||
|
Sys_Error("Couldn't get current working directory");
|
||||||
|
}
|
||||||
|
|
||||||
|
return dir;
|
||||||
|
}
|
||||||
|
|
||||||
/* ======================================================================= */
|
/* ======================================================================= */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue