diff --git a/profiler/src/profiler/TracyStorage.cpp b/profiler/src/profiler/TracyStorage.cpp index 66e4f19c..3f85326d 100644 --- a/profiler/src/profiler/TracyStorage.cpp +++ b/profiler/src/profiler/TracyStorage.cpp @@ -88,6 +88,40 @@ static void GetConfigDirectory( char* buf, size_t& sz ) #endif } +static void GetCacheDirectory( char* buf, size_t& sz ) +{ +#ifdef _WIN32 + auto path = getenv( "LOCALAPPDATA" ); + sz = strlen( path ); + memcpy( buf, path, sz ); + + for( size_t i=0; i