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-02-14 12:31:47 +01:00
|
|
|
#include "ExdDataGenerated.h"
|
2017-12-18 12:36:52 +01:00
|
|
|
#include <common/Logging/Logger.h>
|
2017-10-12 09:02:28 +02:00
|
|
|
#include <boost/range/algorithm/remove_if.hpp>
|
|
|
|
#include <boost/algorithm/string/classification.hpp>
|
|
|
|
#include <boost/shared_ptr.hpp>
|
|
|
|
#include <boost/make_shared.hpp>
|
|
|
|
|
|
|
|
#include <fstream>
|
|
|
|
#include <streambuf>
|
|
|
|
#include <regex>
|
|
|
|
|
|
|
|
|
|
|
|
Core::Logger g_log;
|
|
|
|
Core::Data::ExdDataGenerated g_exdData;
|
|
|
|
|
|
|
|
|
2018-02-14 12:31:47 +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\\ffxiv" );
|
2017-10-12 09:02:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
|
|
|
|
g_log.init();
|
|
|
|
|
|
|
|
g_log.info( "Setting up EXD data" );
|
|
|
|
if( !g_exdData.init( datLocation ) )
|
|
|
|
{
|
|
|
|
g_log.fatal( "Error setting up EXD data " );
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-02-14 12:31:47 +01:00
|
|
|
|
|
|
|
g_log.info( "getting id list " );
|
2017-11-30 23:41:27 +01:00
|
|
|
auto idList = g_exdData.getTerritoryTypeIdList();
|
|
|
|
|
2018-02-14 12:31:47 +01:00
|
|
|
g_log.info( "getting id list done" );
|
2017-11-30 23:41:27 +01:00
|
|
|
for( auto id : idList )
|
|
|
|
{
|
2018-02-14 12:31:47 +01:00
|
|
|
auto teri1 = g_exdData.get<Core::Data::TerritoryType>( id );
|
2017-11-30 23:41:27 +01:00
|
|
|
|
|
|
|
g_log.info( teri1->name );
|
|
|
|
}
|
2017-10-12 09:02:28 +02:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|