Skip to content

Commit 51f9706

Browse files
committed
xrCore: replace _fullpath on realpath for Linux
1 parent f0d7e55 commit 51f9706

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/xrCore/LocatorAPI.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,11 @@ void CLocatorAPI::setup_fs_path(pcstr fs_name)
698698
setup_fs_path(fs_name, fs_path);
699699

700700
string_path full_current_directory;
701+
#if defined(WINDOWS)
701702
_fullpath(full_current_directory, fs_path, sizeof full_current_directory);
703+
#elif defined(LINUX)
704+
realpath(fs_path, full_current_directory);
705+
#endif
702706

703707
FS_Path* path = new FS_Path(full_current_directory, "", "", "", 0);
704708
#ifdef DEBUG

0 commit comments

Comments
 (0)