1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-24 21:57:44 +00:00

action_parse can take an exd path as a launch arg now

This commit is contained in:
NotAdam 2020-01-06 20:04:10 +11:00
parent 12ebf2e997
commit 53ce882ce8

View file

@ -25,7 +25,7 @@ namespace fs = std::experimental::filesystem;
using namespace Sapphire; 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" ); //const std::string datLocation( "/mnt/c/Program Files (x86)/Steam/steamapps/common/FINAL FANTASY XIV Online/game/sqpack" );
struct ActionEntry struct ActionEntry
@ -69,7 +69,7 @@ uint32_t stripNonNumerics( std::string& str )
return std::atoi( str.c_str() ); return std::atoi( str.c_str() );
} }
int main() int main( int argc, char* argv[] )
{ {
Logger::init( "action_parse" ); Logger::init( "action_parse" );
@ -77,6 +77,11 @@ int main()
if( !fs::exists( "ActionLutData.cpp.tmpl" ) ) if( !fs::exists( "ActionLutData.cpp.tmpl" ) )
throw std::runtime_error( "ActionLut.cpp.tmpl is missing in working directory" ); 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" ); Logger::info( "Setting up EXD data" );
if( !g_exdData.init( datLocation ) ) if( !g_exdData.init( datLocation ) )
{ {