diff --git a/launcher/include/account.h b/launcher/include/account.h index ac06745..e0709c4 100644 --- a/launcher/include/account.h +++ b/launcher/include/account.h @@ -3,7 +3,6 @@ #pragma once -#include #include #include diff --git a/launcher/include/assetupdater.h b/launcher/include/assetupdater.h index 3cd6b98..6ea6d71 100644 --- a/launcher/include/assetupdater.h +++ b/launcher/include/assetupdater.h @@ -28,8 +28,8 @@ private: QCoro::Task checkRemoteDalamudAssetVersion(); QCoro::Task checkRemoteDalamudVersion(); - QCoro::Task installCompatibilityTool(); - QCoro::Task installDxvkTool(); + QCoro::Task installCompatibilityTool() const; + QCoro::Task installDxvkTool() const; QCoro::Task installDalamudAssets(); QCoro::Task installDalamud(); QCoro::Task installRuntime(); @@ -39,7 +39,7 @@ private: [[nodiscard]] QUrl dotnetRuntimePackageUrl(const QString &version) const; [[nodiscard]] QUrl dotnetDesktopPackageUrl(const QString &version) const; - bool extractZip(const QString &filePath, const QString &directory); + static bool extractZip(const QString &filePath, const QString &directory); LauncherCore &launcher; diff --git a/launcher/include/benchmarkinstaller.h b/launcher/include/benchmarkinstaller.h index 197976a..1456010 100644 --- a/launcher/include/benchmarkinstaller.h +++ b/launcher/include/benchmarkinstaller.h @@ -5,7 +5,7 @@ #include #include -#include +#include class LauncherCore; class Profile; diff --git a/launcher/include/squareenixlogin.h b/launcher/include/squareenixlogin.h index 8260b2b..fce7deb 100644 --- a/launcher/include/squareenixlogin.h +++ b/launcher/include/squareenixlogin.h @@ -23,11 +23,11 @@ public: private: /// Checks the gate status to see if the servers are closed for maintenance /// \return False if the gate is closed, true if open. - QCoro::Task checkGateStatus(); + QCoro::Task checkGateStatus() const; /// Checks the login status to see if the servers are closed for maintenance /// \return False if logging in is disabled, true if open. - QCoro::Task checkLoginStatus(); + QCoro::Task checkLoginStatus() const; /// Check for updates to the boot components. Even though we don't use these, it's checked by later login steps. QCoro::Task checkBootUpdates(); @@ -46,7 +46,7 @@ private: QCoro::Task registerSession(); /// Returns the hashes of the boot components - QCoro::Task getBootHash(); + QCoro::Task getBootHash() const; /// Gets the SHA1 hash of a file static QString getFileHash(const QString &file); diff --git a/launcher/src/assetupdater.cpp b/launcher/src/assetupdater.cpp index 3c6e239..80a69c9 100644 --- a/launcher/src/assetupdater.cpp +++ b/launcher/src/assetupdater.cpp @@ -203,7 +203,7 @@ QCoro::Task AssetUpdater::checkRemoteDalamudVersion() co_return true; } -QCoro::Task AssetUpdater::installCompatibilityTool() +QCoro::Task AssetUpdater::installCompatibilityTool() const { Q_EMIT launcher.stageChanged(i18n("Updating compatibility tool...")); @@ -245,7 +245,7 @@ QCoro::Task AssetUpdater::installCompatibilityTool() co_return true; } -QCoro::Task AssetUpdater::installDxvkTool() +QCoro::Task AssetUpdater::installDxvkTool() const { Q_EMIT launcher.stageChanged(i18n("Updating DXVK...")); diff --git a/launcher/src/squareenixlogin.cpp b/launcher/src/squareenixlogin.cpp index 83dde2b..a2a2418 100644 --- a/launcher/src/squareenixlogin.cpp +++ b/launcher/src/squareenixlogin.cpp @@ -67,7 +67,7 @@ QCoro::Task> SquareEnixLogin::login(LoginInformation *i co_return m_auth; } -QCoro::Task SquareEnixLogin::checkGateStatus() +QCoro::Task SquareEnixLogin::checkGateStatus() const { Q_EMIT m_launcher.stageChanged(i18n("Checking gate...")); qInfo(ASTRA_LOG) << "Checking if the gate is open..."; @@ -108,7 +108,7 @@ QCoro::Task SquareEnixLogin::checkGateStatus() co_return false; } -QCoro::Task SquareEnixLogin::checkLoginStatus() +QCoro::Task SquareEnixLogin::checkLoginStatus() const { Q_EMIT m_launcher.stageChanged(i18n("Checking login...")); qInfo(ASTRA_LOG) << "Checking if login is open..."; @@ -416,7 +416,7 @@ QCoro::Task SquareEnixLogin::registerSession() co_return false; } -QCoro::Task SquareEnixLogin::getBootHash() +QCoro::Task SquareEnixLogin::getBootHash() const { const QList fileList = {QStringLiteral("ffxivboot.exe"), QStringLiteral("ffxivboot64.exe"), diff --git a/launcher/src/steamapi.cpp b/launcher/src/steamapi.cpp index 7ba84b5..2084db9 100644 --- a/launcher/src/steamapi.cpp +++ b/launcher/src/steamapi.cpp @@ -3,7 +3,6 @@ #include "steamapi.h" -#include "astra_log.h" #include "launchercore.h" SteamAPI::SteamAPI(QObject *parent)