mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 05:57:45 +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;
|
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 ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue