From 53ce882ce881cbd8c8d00b4fc71aaa2c7a79abbc Mon Sep 17 00:00:00 2001 From: NotAdam Date: Mon, 6 Jan 2020 20:04:10 +1100 Subject: [PATCH] action_parse can take an exd path as a launch arg now --- src/tools/action_parse/main.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/tools/action_parse/main.cpp b/src/tools/action_parse/main.cpp index ff750cf6..5f7afc07 100644 --- a/src/tools/action_parse/main.cpp +++ b/src/tools/action_parse/main.cpp @@ -25,7 +25,7 @@ namespace fs = std::experimental::filesystem; using namespace Sapphire; -const std::string datLocation( "/home/mordred/sqpack" ); +std::string datLocation( "/home/mordred/sqpack" ); //const std::string datLocation( "/mnt/c/Program Files (x86)/Steam/steamapps/common/FINAL FANTASY XIV Online/game/sqpack" ); struct ActionEntry @@ -69,7 +69,7 @@ uint32_t stripNonNumerics( std::string& str ) return std::atoi( str.c_str() ); } -int main() +int main( int argc, char* argv[] ) { Logger::init( "action_parse" ); @@ -77,6 +77,11 @@ int main() if( !fs::exists( "ActionLutData.cpp.tmpl" ) ) throw std::runtime_error( "ActionLut.cpp.tmpl is missing in working directory" ); + if( argc == 2 ) + { + datLocation = std::string( argv[ 1 ] ); + } + Logger::info( "Setting up EXD data" ); if( !g_exdData.init( datLocation ) ) {