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:
parent
f1580813d3
commit
dad88484de
3 changed files with 11 additions and 12 deletions
|
@ -399,13 +399,13 @@ int main( int argc, char* argv[] )
|
||||||
//exportMgr.exportZone( exportedZone, ( ExportFileType )exportFileType );
|
//exportMgr.exportZone( exportedZone, ( ExportFileType )exportFileType );
|
||||||
|
|
||||||
|
|
||||||
printf( "Exported %s in %u seconds \n",
|
printf( "Exported %s in %lu seconds \n",
|
||||||
zoneName.c_str(),
|
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 )
|
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( "Unable to extract collision data.\n" );
|
||||||
printf( "Usage: pcb_reader2 territory \"path/to/game/sqpack/ffxiv\"\n" );
|
printf( "Usage: pcb_reader2 territory \"path/to/game/sqpack/ffxiv\"\n" );
|
||||||
}
|
}
|
||||||
|
@ -413,14 +413,13 @@ int main( int argc, char* argv[] )
|
||||||
exportMgr.waitForTasks();
|
exportMgr.waitForTasks();
|
||||||
std::cout << "\n\n\n";
|
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() );
|
std::chrono::duration_cast< std::chrono::seconds >( std::chrono::high_resolution_clock::now() - startTime ).count() );
|
||||||
|
|
||||||
getchar();
|
getchar();
|
||||||
|
|
||||||
if( eData )
|
|
||||||
delete eData;
|
delete eData;
|
||||||
if( data1 )
|
|
||||||
delete data1;
|
delete data1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ public:
|
||||||
auto fileName = zone.name + ".obj";
|
auto fileName = zone.name + ".obj";
|
||||||
|
|
||||||
auto end = std::chrono::high_resolution_clock::now();
|
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(),
|
fileName.c_str(),
|
||||||
std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() );
|
std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() );
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ public:
|
||||||
|
|
||||||
auto end = std::chrono::high_resolution_clock::now();
|
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(),
|
fileName.c_str(),
|
||||||
std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() );
|
std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() );
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
auto end = std::chrono::high_resolution_clock::now();
|
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(),
|
fileName.c_str(),
|
||||||
std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() );
|
std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() );
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
auto end = std::chrono::high_resolution_clock::now();
|
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(),
|
fileName.c_str(),
|
||||||
std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() );
|
std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue