1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 06:27:45 +00:00

fix pcb_reader compiler warnings

This commit is contained in:
NotAdam 2019-01-24 19:04:37 +11:00
parent f1580813d3
commit dad88484de
3 changed files with 11 additions and 12 deletions

View file

@ -399,13 +399,13 @@ int main( int argc, char* argv[] )
//exportMgr.exportZone( exportedZone, ( ExportFileType )exportFileType );
printf( "Exported %s in %u seconds \n",
printf( "Exported %s in %lu seconds \n",
zoneName.c_str(),
std::chrono::duration_cast< std::chrono::seconds >( std::chrono::high_resolution_clock::now() - entryStartTime ) );
std::chrono::duration_cast< std::chrono::seconds >( std::chrono::high_resolution_clock::now() - entryStartTime ).count() );
}
catch( std::exception& e )
{
printf( ( std::string( e.what() ) + "\n" ).c_str() );
printf( "%s", ( std::string( e.what() ) + "\n" ).c_str() );
printf( "Unable to extract collision data.\n" );
printf( "Usage: pcb_reader2 territory \"path/to/game/sqpack/ffxiv\"\n" );
}
@ -413,14 +413,13 @@ int main( int argc, char* argv[] )
exportMgr.waitForTasks();
std::cout << "\n\n\n";
printf( "Finished all tasks in %u seconds\n",
printf( "Finished all tasks in %lu seconds\n",
std::chrono::duration_cast< std::chrono::seconds >( std::chrono::high_resolution_clock::now() - startTime ).count() );
getchar();
if( eData )
delete eData;
if( data1 )
delete data1;
delete eData;
delete data1;
return 0;
}

View file

@ -30,7 +30,7 @@ public:
auto fileName = zone.name + ".obj";
auto end = std::chrono::high_resolution_clock::now();
printf( "[Navmesh] Finished exporting %s in %u ms\n",
printf( "[Navmesh] Finished exporting %s in %lu ms\n",
fileName.c_str(),
std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() );
}
@ -43,7 +43,7 @@ public:
auto end = std::chrono::high_resolution_clock::now();
printf( "[Navmesh] Finished exporting %s in %u ms\n",
printf( "[Navmesh] Finished exporting %s in %lu ms\n",
fileName.c_str(),
std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() );
}

View file

@ -50,7 +50,7 @@ public:
}
auto end = std::chrono::high_resolution_clock::now();
printf( "[Obj] Finished exporting %s in %u ms\n",
printf( "[Obj] Finished exporting %s in %lu ms\n",
fileName.c_str(),
std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() );
}
@ -87,7 +87,7 @@ public:
}
auto end = std::chrono::high_resolution_clock::now();
printf( "[Obj] Finished exporting %s in %u ms\n",
printf( "[Obj] Finished exporting %s in %lu ms\n",
fileName.c_str(),
std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() );
}