2017-10-12 09:02:28 +02:00
|
|
|
|
2021-11-27 00:53:57 +01:00
|
|
|
//#include <Exd/ExdDataGenerated.h>
|
|
|
|
#include <Exd/ExdData.h>
|
2018-03-06 22:22:19 +01:00
|
|
|
#include <Logging/Logger.h>
|
2017-10-12 09:02:28 +02:00
|
|
|
|
2021-11-27 00:53:57 +01:00
|
|
|
#include <datReader/Exd/Structs.h>
|
2019-04-11 19:06:27 +10:00
|
|
|
|
2019-03-26 23:09:07 +11:00
|
|
|
#include <Util/CrashHandler.h>
|
|
|
|
|
2020-02-29 22:30:10 +11:00
|
|
|
[[maybe_unused]] Sapphire::Common::Util::CrashHandler crashHandler;
|
2019-03-26 23:09:07 +11:00
|
|
|
|
2019-04-11 19:06:27 +10:00
|
|
|
xiv::dat::GameData* gameData = nullptr;
|
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
|
|
|
|
2019-10-14 18:41:16 +11:00
|
|
|
namespace fs = std::filesystem;
|
2019-04-11 19:06:27 +10:00
|
|
|
|
2018-11-24 01:35:25 +01:00
|
|
|
//const std::string datLocation( "/opt/sapphire_3_15_0/bin/sqpack" );
|
2021-11-27 00:53:57 +01:00
|
|
|
const std::string datLocation( "/mnt/d/ffxiv/v2.28/game/sqpack" );
|
2019-04-11 19:06:27 +10:00
|
|
|
|
|
|
|
int main( int argc, char* argv[] )
|
2017-10-12 09:02:28 +02:00
|
|
|
{
|
|
|
|
|
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" );
|
2019-04-11 22:18:18 +10:00
|
|
|
|
2021-11-27 00:53:57 +01:00
|
|
|
auto exdData = Data::ExdData();
|
|
|
|
exdData.init( datLocation );
|
2019-04-11 22:18:18 +10:00
|
|
|
|
2021-11-27 00:53:57 +01:00
|
|
|
auto row = exdData.getRow< Component::Excel::ClassJob >( 1 );
|
2019-04-11 22:18:18 +10:00
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
return 0;
|
2017-10-12 09:02:28 +02:00
|
|
|
}
|