Skip to content

Commit

Permalink
xrCore: replace _fullpath on realpath for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed May 24, 2018
1 parent f0d7e55 commit 51f9706
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xrCore/LocatorAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,11 @@ void CLocatorAPI::setup_fs_path(pcstr fs_name)
setup_fs_path(fs_name, fs_path);

string_path full_current_directory;
#if defined(WINDOWS)
_fullpath(full_current_directory, fs_path, sizeof full_current_directory);
#elif defined(LINUX)
realpath(fs_path, full_current_directory);
#endif

FS_Path* path = new FS_Path(full_current_directory, "", "", "", 0);
#ifdef DEBUG
Expand Down

0 comments on commit 51f9706

Please sign in to comment.