mirror of
https://github.com/wolfpld/tracy.git
synced 2026-07-31 18:39:24 +00:00
Implement removal of user data files.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user