1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-21 20:27:45 +00:00
astra/launcher/include/assetupdater.h

51 lines
1 KiB
C
Raw Normal View History

#pragma once
2022-08-15 11:14:37 -04:00
#include <QJsonArray>
#include <QObject>
2022-08-15 11:14:37 -04:00
#include <QTemporaryDir>
#include "launchercore.h"
class LauncherCore;
class QNetworkReply;
class AssetUpdater : public QObject
{
Q_OBJECT
public:
explicit AssetUpdater(Profile &profile, LauncherCore &launcher, QObject *parent = nullptr);
void update();
void beginInstall();
void checkIfCheckingIsDone();
void checkIfDalamudAssetsDone();
void checkIfFinished();
signals:
void finishedUpdating();
private:
LauncherCore &launcher;
Profile::DalamudChannel chosenChannel;
2022-01-27 10:46:22 -05:00
QString remoteDalamudVersion;
QString remoteRuntimeVersion;
2022-01-27 10:46:22 -05:00
QTemporaryDir tempDir;
bool doneDownloadingDalamud = false;
bool doneDownloadingRuntimeCore = false;
bool doneDownloadingRuntimeDesktop = false;
bool needsRuntimeInstall = false;
bool needsDalamudInstall = false;
int remoteDalamudAssetVersion = -1;
QList<QString> dalamudAssetNeededFilenames;
QJsonArray remoteDalamudAssetArray;
QString dataDir;
Profile &m_profile;
2022-01-27 10:46:22 -05:00
};