mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Add loading/saving messages to update utility.
This commit is contained in:
parent
d228bcb622
commit
947eb56f3d
@ -42,6 +42,8 @@ int main( int argc, char** argv )
|
|||||||
const char* input = argv[1];
|
const char* input = argv[1];
|
||||||
const char* output = argv[2];
|
const char* output = argv[2];
|
||||||
|
|
||||||
|
printf( "Loading...\r" );
|
||||||
|
fflush( stdout );
|
||||||
auto f = std::unique_ptr<tracy::FileRead>( tracy::FileRead::Open( input ) );
|
auto f = std::unique_ptr<tracy::FileRead>( tracy::FileRead::Open( input ) );
|
||||||
if( !f )
|
if( !f )
|
||||||
{
|
{
|
||||||
@ -65,6 +67,8 @@ int main( int argc, char** argv )
|
|||||||
fprintf( stderr, "Cannot open output file!\n" );
|
fprintf( stderr, "Cannot open output file!\n" );
|
||||||
exit( 1 );
|
exit( 1 );
|
||||||
}
|
}
|
||||||
|
printf( "Saving... \r" );
|
||||||
|
fflush( stdout );
|
||||||
worker.Write( *w );
|
worker.Write( *w );
|
||||||
inVer = worker.GetTraceVersion();
|
inVer = worker.GetTraceVersion();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user