From 2e715544dda80ae5fc1ac04e74fdd40474a5d613 Mon Sep 17 00:00:00 2001 From: fed <58637860+fedddddd@users.noreply.github.com> Date: Wed, 21 Sep 2022 01:45:50 +0200 Subject: [PATCH] Demonware stuff --- src/client/component/demonware.cpp | 10 ++++++++++ src/client/game/demonware/services/bdStorage.cpp | 9 +-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/client/component/demonware.cpp b/src/client/component/demonware.cpp index 8ee1eda1..9422fa7d 100644 --- a/src/client/component/demonware.cpp +++ b/src/client/component/demonware.cpp @@ -444,6 +444,11 @@ namespace demonware { return true; } + + int get_patching_status_stub() + { + return 1; // complete + } } class component final : public component_interface @@ -520,6 +525,11 @@ namespace demonware // Skip bdAuth::validateResponseSignature utils::hook::call(0x1245440_b, return_true); // bdRSAKey::importKey utils::hook::call(0x1245472_b, return_true); // bdRSAKey::verifySignatureSHA256 + + // Skip update check in Live_SyncOnlineDataFlags + utils::hook::set(0x14052AB60, 0xC301B0); + utils::hook::set(0x14052A6D0, 0xC3); + utils::hook::jump(0x14052B800, get_patching_status_stub); } void pre_destroy() override diff --git a/src/client/game/demonware/services/bdStorage.cpp b/src/client/game/demonware/services/bdStorage.cpp index f499b7e3..2a025442 100644 --- a/src/client/game/demonware/services/bdStorage.cpp +++ b/src/client/game/demonware/services/bdStorage.cpp @@ -249,14 +249,7 @@ namespace demonware #endif } - if (count == numfiles) - { - reply->send(); - } - else - { - server->create_reply(this->task_id(), game::BD_NO_FILE)->send(); - } + reply->send(); } void bdStorage::unk12(service_server* server, byte_buffer* buffer) const