2017-10-12 09:02:28 +02:00
|
|
|
|
|
|
|
#include <GameData.h>
|
|
|
|
#include <File.h>
|
|
|
|
#include <DatCat.h>
|
|
|
|
#include <ExdData.h>
|
|
|
|
#include <ExdCat.h>
|
|
|
|
#include <Exd.h>
|
|
|
|
#include <Exh.h>
|
|
|
|
#include <iostream>
|
|
|
|
#include <cctype>
|
|
|
|
#include <set>
|
2018-03-06 22:22:19 +01:00
|
|
|
#include <Exd/ExdDataGenerated.h>
|
|
|
|
#include <Logging/Logger.h>
|
2017-10-12 09:02:28 +02:00
|
|
|
|
|
|
|
#include <fstream>
|
|
|
|
#include <streambuf>
|
|
|
|
#include <regex>
|
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
Sapphire::Data::ExdDataGenerated g_exdData;
|
2017-10-12 09:02:28 +02:00
|
|
|
|
2018-12-23 03:53:08 +01:00
|
|
|
using namespace Sapphire;
|
2017-10-12 09:02:28 +02:00
|
|
|
|
2018-11-24 01:35:25 +01:00
|
|
|
//const std::string datLocation( "/opt/sapphire_3_15_0/bin/sqpack" );
|
2019-01-08 18:08:51 +11:00
|
|
|
const std::string datLocation( "/mnt/c/Program Files (x86)/Steam/steamapps/common/FINAL FANTASY XIV Online/game/sqpack" );
|
2017-10-12 09:02:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
|
2018-12-23 03:53:08 +01:00
|
|
|
Logger::init( "struct_test" );
|
2017-10-12 09:02:28 +02:00
|
|
|
|
2018-12-23 03:53:08 +01:00
|
|
|
Logger::info( "Setting up EXD data" );
|
2018-08-29 21:40:59 +02:00
|
|
|
if( !g_exdData.init( datLocation ) )
|
|
|
|
{
|
2018-12-23 03:53:08 +01:00
|
|
|
Logger::fatal( "Error setting up EXD data " );
|
2018-08-29 21:40:59 +02:00
|
|
|
return 0;
|
|
|
|
}
|
2017-10-12 09:02:28 +02:00
|
|
|
|
2019-01-08 18:08:51 +11:00
|
|
|
auto gld = g_exdData.get< Sapphire::Data::ClassJob >( 1 );
|
|
|
|
if( gld )
|
2018-08-29 21:40:59 +02:00
|
|
|
{
|
2019-01-08 18:08:51 +11:00
|
|
|
Logger::info( "got {0}", gld->name );
|
2018-08-29 21:40:59 +02:00
|
|
|
}
|
2019-01-08 18:08:51 +11:00
|
|
|
else
|
|
|
|
Logger::warn( "failed to get classjob {}", 1 );
|
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
|
|
|
|
return 0;
|
2017-10-12 09:02:28 +02:00
|
|
|
}
|