Merge pull request #4 from fedddddd/main

Demonware stuff
This commit is contained in:
quaK 2022-09-21 02:47:10 +03:00 committed by GitHub
commit 01e2d305d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 8 deletions

View File

@ -444,6 +444,11 @@ namespace demonware
{ {
return true; return true;
} }
int get_patching_status_stub()
{
return 1; // complete
}
} }
class component final : public component_interface class component final : public component_interface
@ -520,6 +525,11 @@ namespace demonware
// Skip bdAuth::validateResponseSignature // Skip bdAuth::validateResponseSignature
utils::hook::call(0x1245440_b, return_true); // bdRSAKey::importKey utils::hook::call(0x1245440_b, return_true); // bdRSAKey::importKey
utils::hook::call(0x1245472_b, return_true); // bdRSAKey::verifySignatureSHA256 utils::hook::call(0x1245472_b, return_true); // bdRSAKey::verifySignatureSHA256
// Skip update check in Live_SyncOnlineDataFlags
utils::hook::set(0x14052AB60, 0xC301B0);
utils::hook::set<uint8_t>(0x14052A6D0, 0xC3);
utils::hook::jump(0x14052B800, get_patching_status_stub);
} }
void pre_destroy() override void pre_destroy() override

View File

@ -249,14 +249,7 @@ namespace demonware
#endif #endif
} }
if (count == numfiles) reply->send();
{
reply->send();
}
else
{
server->create_reply(this->task_id(), game::BD_NO_FILE)->send();
}
} }
void bdStorage::unk12(service_server* server, byte_buffer* buffer) const void bdStorage::unk12(service_server* server, byte_buffer* buffer) const