#include "legacyapp.h" #include "filesystem.h" #include LegacyApp::LegacyApp(QObject *parent) : QObject(parent), window(this), client_local_dat(), properties(qApp->applicationDirPath() + "/legacy_v2.ini", QSettings::IniFormat), client_local_dat_busy(false) {} void LegacyApp::Init() { window.Init(); StartDatFilesInitialisation(); } void LegacyApp::StartDatFilesInitialisation() { QString lotro_dir_path = properties.value("lotro/folder", "none").toString(); QString locale = properties.value("lotro/locale", "English").toString(); qDebug() << "Initialising file " << lotro_dir_path + "/client_local_" + locale + ".dat"; QtConcurrent::run([this, lotro_dir_path, locale](){ if (client_local_dat_busy == false) { client_local_dat_busy = true; client_local_dat.Initialise((lotro_dir_path + "/client_local_" + locale + ".dat").toStdString(), 0); client_local_dat_busy = false; } }); } void LegacyApp::DownloadFinished() { // TODO }