Demonware stuff 3

This commit is contained in:
quaK 2022-09-21 19:13:08 +03:00
parent f13eea4d61
commit d6ce8bcfc5
7 changed files with 51 additions and 16 deletions

View File

@ -527,9 +527,9 @@ namespace demonware
utils::hook::call(0x1245472_b, return_true); // bdRSAKey::verifySignatureSHA256 utils::hook::call(0x1245472_b, return_true); // bdRSAKey::verifySignatureSHA256
// Skip update check in Live_SyncOnlineDataFlags // Skip update check in Live_SyncOnlineDataFlags
utils::hook::set(0x14052AB60, 0xC301B0); utils::hook::set(0x52AB60_b, 0xC301B0);
utils::hook::set<uint8_t>(0x14052A6D0, 0xC3); utils::hook::set<uint8_t>(0x52A6D0_b, 0xC3);
utils::hook::jump(0x14052B800, get_patching_status_stub); utils::hook::jump(0x52B800_b, get_patching_status_stub);
} }
void pre_destroy() override void pre_destroy() override

View File

@ -144,8 +144,9 @@ namespace demonware
} }
}; };
struct bdFileQueryResult final : public bdTaskResult class bdFileQueryResult final : public bdTaskResult
{ {
public:
uint64_t user_id; uint64_t user_id;
std::string platform; std::string platform;
std::string filename; std::string filename;

View File

@ -17,26 +17,27 @@ namespace demonware
this->register_service<bdCounter>(); this->register_service<bdCounter>();
this->register_service<bdDML>(); this->register_service<bdDML>();
this->register_service<bdEventLog>(); this->register_service<bdEventLog>();
this->register_service<bdFacebook>();
this->register_service<bdGroup>(); this->register_service<bdGroup>();
this->register_service<bdTeams>(); this->register_service<bdLeague>();
this->register_service<bdLeague2>();
this->register_service<bdMarketingComms>();
this->register_service<bdMarketplace>();
this->register_service<bdMatchMaking>();
this->register_service<bdPresence>();
this->register_service<bdProfiles>();
this->register_service<bdPublisherVariables>();
this->register_service<bdReward>();
this->register_service<bdRichPresence>();
this->register_service<bdStats>(); this->register_service<bdStats>();
this->register_service<bdStats2>(); this->register_service<bdStats2>();
this->register_service<bdStats3>(); this->register_service<bdStats3>();
this->register_service<bdStorage>(); this->register_service<bdStorage>();
this->register_service<bdTeams>();
this->register_service<bdTitleUtilities>(); this->register_service<bdTitleUtilities>();
this->register_service<bdProfiles>();
this->register_service<bdRichPresence>();
this->register_service<bdFacebook>();
this->register_service<bdUNK63>(); this->register_service<bdUNK63>();
this->register_service<bdUNK123>();
this->register_service<bdUserGroups>(); this->register_service<bdUserGroups>();
this->register_service<bdMarketplace>();
this->register_service<bdLeague>();
this->register_service<bdLeague2>();
this->register_service<bdPublisherVariables>();
this->register_service<bdPresence>();
this->register_service<bdMarketingComms>();
this->register_service<bdMatchMaking>();
this->register_service<bdReward>();
}; };
void lobby_server::send_reply(reply* data) void lobby_server::send_reply(reply* data)

View File

@ -37,5 +37,6 @@
// AccountLinking // 86 // AccountLinking // 86
#include "services/bdPresence.hpp" //103 #include "services/bdPresence.hpp" //103
#include "services/bdMarketingComms.hpp" //104 #include "services/bdMarketingComms.hpp" //104
#include "services/bdUNK123.hpp" //123
#include "services/bdMatchMaking.hpp" //138 #include "services/bdMatchMaking.hpp" //138
#include "services/bdReward.hpp" //139 #include "services/bdReward.hpp" //139

View File

@ -28,6 +28,7 @@ namespace demonware
void bdMarketingComms::unk6(service_server* server, byte_buffer* buffer) const void bdMarketingComms::unk6(service_server* server, byte_buffer* buffer) const
{ {
// TODO:
server->create_reply(this->task_id(), game::BD_NO_FILE)->send(); server->create_reply(this->task_id(), game::BD_NO_FILE)->send();
} }
} }

View File

@ -0,0 +1,18 @@
#include <std_include.hpp>
#include "../services.hpp"
#include "game/game.hpp"
namespace demonware
{
bdUNK123::bdUNK123() : service(123, "bdUNK123")
{
this->register_task(1, &bdUNK123::unk1);
}
void bdUNK123::unk1(service_server* server, byte_buffer* /*buffer*/) const
{
// TODO:
server->create_reply(this->task_id(), game::BD_NO_FILE)->send();
}
}

View File

@ -0,0 +1,13 @@
#pragma once
namespace demonware
{
class bdUNK123 final : public service
{
public:
bdUNK123();
private:
void unk1(service_server* server, byte_buffer* buffer) const;
};
}