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:
parent
12ebf2e997
commit
53ce882ce8
1 changed files with 7 additions and 2 deletions
|
@ -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 ) )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue