1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-04 09:47:46 +00:00
sapphire/src/tools/exd_struct_test/main.cpp

35 lines
726 B
C++
Raw Normal View History

//#include <Exd/ExdDataGenerated.h>
#include <Exd/ExdData.h>
2018-03-06 22:22:19 +01:00
#include <Logging/Logger.h>
#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;
2018-12-23 03:53:08 +01:00
using namespace Sapphire;
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" );
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[] )
{
2018-12-23 03:53:08 +01:00
Logger::init( "struct_test" );
2018-12-23 03:53:08 +01:00
Logger::info( "Setting up EXD data" );
auto exdData = Data::ExdData();
exdData.init( datLocation );
auto row = exdData.getRow< Component::Excel::ClassJob >( 1 );
return 0;
}