2
0
mirror of https://github.com/wolfpld/tracy synced 2026-02-23 16:22:11 +00:00

Handle legacy file versions.

This commit is contained in:
Bartosz Taudul
2019-08-12 12:16:48 +02:00
parent 54076e717c
commit 154c902e03
5 changed files with 49 additions and 15 deletions

View File

@@ -91,6 +91,11 @@ int main( int argc, char** argv )
fprintf( stderr, "The file you are trying to open is not a tracy dump.\n" );
exit( 1 );
}
catch( const tracy::LegacyVersion& e )
{
fprintf( stderr, "The file you are trying to open is from a legacy version.\n" );
exit( 1 );
}
return 0;
}