diff --git a/profiler/build/win32/Tracy.vcxproj b/profiler/build/win32/Tracy.vcxproj index 095cc03b..afaa4fa6 100644 --- a/profiler/build/win32/Tracy.vcxproj +++ b/profiler/build/win32/Tracy.vcxproj @@ -135,6 +135,7 @@ + diff --git a/profiler/build/win32/Tracy.vcxproj.filters b/profiler/build/win32/Tracy.vcxproj.filters index 04448419..ffc20338 100644 --- a/profiler/build/win32/Tracy.vcxproj.filters +++ b/profiler/build/win32/Tracy.vcxproj.filters @@ -194,6 +194,9 @@ server + + server + diff --git a/server/TracyFilesystem.hpp b/server/TracyFilesystem.hpp new file mode 100644 index 00000000..8e05a497 --- /dev/null +++ b/server/TracyFilesystem.hpp @@ -0,0 +1,17 @@ +#ifndef __TRACYFILESYSTEM_HPP__ +#define __TRACYFILESYSTEM_HPP__ + +#include + +namespace tracy +{ + +static inline bool FileExists( const char* fn ) +{ + struct stat buf; + return stat( fn, &buf ) == 0 && ( buf.st_mode & S_IFREG ) != 0; +} + +} + +#endif