Skip to content

Commit 5c8c308

Browse files
committed
Update to latest libphysis API
1 parent cf758b9 commit 5c8c308

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

launcher/src/encryptedarg.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ QString encryptGameArg(const QString &arg)
6868
char buffer[9]{};
6969
sprintf(buffer, "%08x", key);
7070

71-
Blowfish *blowfish = physis_blowfish_initialize(reinterpret_cast<uint8_t *>(buffer), 9);
71+
SqexArgBlowfish *blowfish = physis_blowfish_initialize(reinterpret_cast<uint8_t *>(buffer), 9);
7272

7373
uint8_t *out_data = nullptr;
7474
uint32_t out_size = 0;
@@ -148,12 +148,12 @@ std::pair<QString, int> encryptSteamTicket(QString ticket, qint64 time)
148148
auto finalBytes = binaryWriter;
149149
std::swap(finalBytes[0], finalBytes[1]);
150150

151-
SteamTicketBlowfish *blowfish = miscel_steamticket_blowfish_initialize(reinterpret_cast<uint8_t *>(blowfishKey), 16);
151+
SteamTicketBlowfish *blowfish = physis_steamticket_blowfish_initialize(reinterpret_cast<uint8_t *>(blowfishKey), 16);
152152

153-
miscel_steamticket_blowfish_encrypt(blowfish, reinterpret_cast<uint8_t *>(finalBytes.data()), finalBytes.size());
153+
physis_steamticket_blowfish_encrypt(blowfish, reinterpret_cast<uint8_t *>(finalBytes.data()), finalBytes.size());
154154
Q_ASSERT(finalBytes.length() % 8 == 0);
155155

156-
miscel_steamticket_physis_blowfish_free(blowfish);
156+
physis_steamticket_physis_blowfish_free(blowfish);
157157

158158
auto encoded = finalBytes.toBase64(QByteArray::Base64Option::Base64UrlEncoding | QByteArray::Base64Option::KeepTrailingEquals);
159159
encoded.replace('+', '-');

launcher/src/patcher.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ QCoro::Task<bool> Patcher::patch(const physis_PatchList &patchList)
4444

4545
// First, let's check if we have enough space to even download the patches
4646
const qint64 neededSpace = patchList.total_size_downloaded - m_patchesDirStorageInfo.bytesAvailable();
47+
qInfo() << neededSpace << m_patchesDirStorageInfo.bytesAvailable();
4748
if (neededSpace > 0) {
4849
KFormat format;
4950
QString neededSpaceStr = format.formatByteSize(neededSpace);

0 commit comments

Comments
 (0)