From 388a47f9fcfc5eadab35710a7327edfae4d32575 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 17 Sep 2023 08:13:32 -0400 Subject: [PATCH] Fix Patcher args --- launcher/src/squareboot.cpp | 2 +- launcher/src/squarelauncher.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/src/squareboot.cpp b/launcher/src/squareboot.cpp index 0325ebd..993b5a7 100644 --- a/launcher/src/squareboot.cpp +++ b/launcher/src/squareboot.cpp @@ -47,7 +47,7 @@ QCoro::Task<> SquareBoot::bootCheck(const LoginInformation &info) const auto reply = window.mgr->get(request); co_await reply; - patcher = new Patcher(window, info.profile->gamePath() + QStringLiteral("/boot"), info.profile->bootData, this); + patcher = new Patcher(window, info.profile->gamePath() + QStringLiteral("/boot"), *info.profile->bootData, this); co_await patcher->patch(reply->readAll()); // update game version information diff --git a/launcher/src/squarelauncher.cpp b/launcher/src/squarelauncher.cpp index 1659876..fe70206 100644 --- a/launcher/src/squarelauncher.cpp +++ b/launcher/src/squarelauncher.cpp @@ -184,7 +184,7 @@ QCoro::Task<> SquareLauncher::registerSession(const LoginInformation &info) if (reply->rawHeaderList().contains(QByteArrayLiteral("X-Patch-Unique-Id"))) { const QString body = reply->readAll(); - patcher = new Patcher(window, info.profile->gamePath() + QStringLiteral("/game"), info.profile->gameData, this); + patcher = new Patcher(window, info.profile->gamePath() + QStringLiteral("/game"), *info.profile->gameData, this); co_await patcher->patch(body); info.profile->readGameVersion();