Skip to content

Commit

Permalink
Merge pull request auroramod#4 from fedddddd/main
Browse files Browse the repository at this point in the history
Demonware stuff
  • Loading branch information
Joelrau authored Sep 20, 2022
2 parents 02aa669 + 2e71554 commit 01e2d30
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 10 additions & 0 deletions src/client/component/demonware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,11 @@ namespace demonware
{
return true;
}

int get_patching_status_stub()
{
return 1; // complete
}
}

class component final : public component_interface
Expand Down Expand Up @@ -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<uint8_t>(0x14052A6D0, 0xC3);
utils::hook::jump(0x14052B800, get_patching_status_stub);
}

void pre_destroy() override
Expand Down
9 changes: 1 addition & 8 deletions src/client/game/demonware/services/bdStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01e2d30

Please sign in to comment.