Implement Sys_GetCurrentDirectory()

This commit is contained in:
Yamagi Burmeister 2012-06-03 15:31:44 +02:00
parent 1a3b54b27e
commit 991ff17f1b

View file

@ -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;
}
/* ======================================================================= */
/*