From e2a3e560a6c45fe5e86aa13a834d67e9c5cda4cc Mon Sep 17 00:00:00 2001 From: mordred Date: Wed, 24 Apr 2019 08:31:42 +0200 Subject: [PATCH] nav_export takes a path to the dats again --- src/tools/nav_export/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tools/nav_export/main.cpp b/src/tools/nav_export/main.cpp index 600ba1dd..043410a7 100644 --- a/src/tools/nav_export/main.cpp +++ b/src/tools/nav_export/main.cpp @@ -314,6 +314,9 @@ int main( int argc, char* argv[] ) if( generateNavmesh ) exportFileType |= ExportFileType::Navmesh; + if( argc > 1 ) + gamePath = std::string( argv[ 1 ] ); + try { initExd( gamePath ); @@ -321,7 +324,7 @@ int main( int argc, char* argv[] ) } catch( std::exception& e ) { - printf( "Unable to initialise EXD!\n Usage: pcb_reader \"path/to/FINAL FANTASY XIV - A REALM REBORN/game/sqpack\"\n" ); + printf( "Unable to initialise EXD!\n Usage: nav_export \"path/to/FINAL FANTASY XIV - A REALM REBORN/game/sqpack\"\n" ); return -1; } ExportMgr exportMgr( nJobs ); @@ -486,7 +489,7 @@ int main( int argc, char* argv[] ) { 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" ); + printf( "Usage: nav_export \"path/to/game/sqpack/ffxiv\"\n" ); } } pCache->purge();