mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
Implement Sys_GetCurrentDirectory()
This commit is contained in:
parent
1a3b54b27e
commit
991ff17f1b
1 changed files with 13 additions and 0 deletions
|
@ -638,6 +638,19 @@ Sys_Mkdir(char *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