mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 17:21:10 +00:00
- implemented FS_FullPath()
function for POSIX
This commit is contained in:
parent
bfefc12427
commit
79be69ec4a
1 changed files with 7 additions and 1 deletions
|
@ -63,6 +63,8 @@ enum
|
|||
|
||||
#ifndef _WIN32
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <fnmatch.h>
|
||||
#include <sys/stat.h>
|
||||
|
@ -175,7 +177,11 @@ static int FS_FindAttr(findstate_t *const fileinfo)
|
|||
|
||||
std::string FS_FullPath(const char* directory)
|
||||
{
|
||||
// todo
|
||||
char fullpath[PATH_MAX];
|
||||
|
||||
if (realpath(directory, fullpath) != nullptr)
|
||||
return fullpath;
|
||||
|
||||
return directory;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue