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::Logger g_log;
|
|
|
|
Sapphire::Data::ExdDataGenerated g_exdData;
|
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" );
|
|
|
|
const std::string datLocation( "C:\\SquareEnix\\FINAL FANTASY XIV - A Realm Reborn\\game\\sqpack" );
|
2017-10-12 09:02:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
g_log.init();
|
2017-10-12 09:02:28 +02:00
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
g_log.info( "Setting up EXD data" );
|
|
|
|
if( !g_exdData.init( datLocation ) )
|
|
|
|
{
|
|
|
|
g_log.fatal( "Error setting up EXD data " );
|
|
|
|
return 0;
|
|
|
|
}
|
2017-10-12 09:02:28 +02:00
|
|
|
|
2017-11-30 23:41:27 +01:00
|
|
|
|
2018-11-24 01:35:25 +01:00
|
|
|
//g_log.info( "getting id list " );
|
|
|
|
//auto idList = g_exdData.getGilShopIdList();
|
2017-11-30 23:41:27 +01:00
|
|
|
|
2018-11-24 01:35:25 +01:00
|
|
|
//g_log.info( "getting id list done" );
|
|
|
|
//for( auto id : idList )
|
2018-08-29 21:40:59 +02:00
|
|
|
{
|
2018-11-29 16:55:48 +01:00
|
|
|
auto teri1 = g_exdData.get< Sapphire::Data::GilShopItem >( 262440, 0 );
|
2018-11-24 01:35:25 +01:00
|
|
|
g_log.info( "0 -> " + std::to_string( teri1->item ) );
|
2017-10-12 09:02:28 +02:00
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
auto teri2 = g_exdData.get< Sapphire::Data::GilShopItem >( 262440, 1 );
|
2018-11-24 01:35:25 +01:00
|
|
|
g_log.info( "1 -> " + std::to_string( teri2->item ) );
|
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
auto teri3 = g_exdData.get< Sapphire::Data::GilShopItem >( 262440, 2 );
|
2018-11-24 01:35:25 +01:00
|
|
|
g_log.info( "2 -> " + std::to_string( teri3->item ) );
|
2018-08-29 21:40:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
2017-10-12 09:02:28 +02:00
|
|
|
}
|