diff --git a/server/TracyUserData.cpp b/server/TracyUserData.cpp index d2f81003..1c62d488 100644 --- a/server/TracyUserData.cpp +++ b/server/TracyUserData.cpp @@ -151,4 +151,11 @@ FILE* UserData::OpenFile( const char* filename, bool write ) return f; } +void UserData::Remove( const char* filename ) +{ + const auto path = GetSavePath( m_program.c_str(), m_time, filename, false ); + if( !path ) return; + unlink( path ); +} + } diff --git a/server/TracyUserData.hpp b/server/TracyUserData.hpp index 8e8450e6..f361325b 100644 --- a/server/TracyUserData.hpp +++ b/server/TracyUserData.hpp @@ -28,6 +28,7 @@ public: private: FILE* OpenFile( const char* filename, bool write ); + void Remove( const char* filename ); std::string m_program; uint64_t m_time;