diff --git a/server/TracyStorage.cpp b/server/TracyStorage.cpp index e7b1a116..41a0d3d1 100644 --- a/server/TracyStorage.cpp +++ b/server/TracyStorage.cpp @@ -50,18 +50,11 @@ static bool CreateDirStruct( const std::string& path ) return true; } -const char* GetSavePath( const char* file ) +static void GetConfigDirectory( char* buf, size_t& sz ) { - enum { Pool = 8 }; - enum { MaxPath = 512 }; - static char bufpool[Pool][MaxPath]; - static int bufsel = 0; - char* buf = bufpool[bufsel]; - bufsel = ( bufsel + 1 ) % Pool; - #ifdef _WIN32 auto path = getenv( "APPDATA" ); - auto sz = strlen( path ); + sz = strlen( path ); memcpy( buf, path, sz ); for( size_t i=0; i