This commit is contained in:
Federico Cecchetto 2022-02-26 01:58:01 +01:00
parent 857f220e06
commit 952b7d8721
7 changed files with 22 additions and 15 deletions

View File

@ -49,10 +49,6 @@ namespace demonware
std::string identity{}; std::string identity{};
std::string token{}; std::string token{};
#ifdef DEBUG
printf("%s\n", packet.data());
#endif
rapidjson::Document j; rapidjson::Document j;
j.Parse(packet.data(), packet.size()); j.Parse(packet.data(), packet.size());
@ -136,9 +132,6 @@ namespace demonware
auto seed = std::to_string(iv_seed); auto seed = std::to_string(iv_seed);
doc.AddMember("iv_seed", rapidjson::StringRef(seed.data(), seed.size()), doc.GetAllocator()); doc.AddMember("iv_seed", rapidjson::StringRef(seed.data(), seed.size()), doc.GetAllocator());
#ifndef DEBUG
doc.AddMember("identity", rapidjson::StringRef(identity.data(), identity.size()), doc.GetAllocator());
#endif
doc.AddMember("client_ticket", rapidjson::StringRef(ticket_b64.data(), ticket_b64.size()), doc.GetAllocator()); doc.AddMember("client_ticket", rapidjson::StringRef(ticket_b64.data(), ticket_b64.size()), doc.GetAllocator());
doc.AddMember("server_ticket", rapidjson::StringRef(auth_data_b64.data(), auth_data_b64.size()), doc.AddMember("server_ticket", rapidjson::StringRef(auth_data_b64.data(), auth_data_b64.size()),
doc.GetAllocator()); doc.GetAllocator());
@ -166,10 +159,6 @@ namespace demonware
raw_reply reply(result); raw_reply reply(result);
#ifdef DEBUG
printf("sending reply: %s\n", result.data());
#endif
this->send_reply(&reply); this->send_reply(&reply);
#ifdef DEBUG #ifdef DEBUG

View File

@ -9,6 +9,7 @@ namespace demonware
this->register_task(2, &bdMatchMaking2::unk2); this->register_task(2, &bdMatchMaking2::unk2);
this->register_task(3, &bdMatchMaking2::unk3); this->register_task(3, &bdMatchMaking2::unk3);
this->register_task(5, &bdMatchMaking2::unk5); this->register_task(5, &bdMatchMaking2::unk5);
this->register_task(10, &bdMatchMaking2::unk10);
this->register_task(16, &bdMatchMaking2::unk16); this->register_task(16, &bdMatchMaking2::unk16);
} }
@ -40,6 +41,13 @@ namespace demonware
reply->send(); reply->send();
} }
void bdMatchMaking2::unk10(service_server* server, byte_buffer* /*buffer*/) const
{
// TODO:
auto reply = server->create_reply(this->task_id());
reply->send();
}
void bdMatchMaking2::unk16(service_server* server, byte_buffer* /*buffer*/) const void bdMatchMaking2::unk16(service_server* server, byte_buffer* /*buffer*/) const
{ {
// TODO: // TODO:

View File

@ -12,6 +12,7 @@ namespace demonware
void unk2(service_server* server, byte_buffer* buffer) const; void unk2(service_server* server, byte_buffer* buffer) const;
void unk3(service_server* server, byte_buffer* buffer) const; void unk3(service_server* server, byte_buffer* buffer) const;
void unk5(service_server* server, byte_buffer* buffer) const; void unk5(service_server* server, byte_buffer* buffer) const;
void unk10(service_server* server, byte_buffer* buffer) const;
void unk16(service_server* server, byte_buffer* buffer) const; void unk16(service_server* server, byte_buffer* buffer) const;
}; };
} }

View File

@ -13,9 +13,9 @@ namespace demonware
{ {
this->register_task(20, &bdStorage::list_publisher_files); this->register_task(20, &bdStorage::list_publisher_files);
this->register_task(21, &bdStorage::get_publisher_file); this->register_task(21, &bdStorage::get_publisher_file);
//this->register_task(10, &bdStorage::set_user_file); this->register_task(24, &bdStorage::set_user_file);
this->register_task(16, &bdStorage::get_user_file); this->register_task(16, &bdStorage::get_user_file);
this->register_task(13, &bdStorage::unk13); this->register_task(12, &bdStorage::unk12);
this->map_publisher_resource("motd-.*\\.txt", DW_MOTD); this->map_publisher_resource("motd-.*\\.txt", DW_MOTD);
this->map_publisher_resource("ffotd-.*\\.ff", DW_FASTFILE); this->map_publisher_resource("ffotd-.*\\.ff", DW_FASTFILE);
@ -190,7 +190,7 @@ namespace demonware
} }
} }
void bdStorage::unk13(service_server* server, byte_buffer* buffer) const void bdStorage::unk12(service_server* server, byte_buffer* buffer) const
{ {
// TODO: // TODO:
auto reply = server->create_reply(this->task_id()); auto reply = server->create_reply(this->task_id());

View File

@ -20,7 +20,7 @@ namespace demonware
void get_publisher_file(service_server* server, byte_buffer* buffer); void get_publisher_file(service_server* server, byte_buffer* buffer);
void set_user_file(service_server* server, byte_buffer* buffer) const; void set_user_file(service_server* server, byte_buffer* buffer) const;
void get_user_file(service_server* server, byte_buffer* buffer) const; void get_user_file(service_server* server, byte_buffer* buffer) const;
void unk13(service_server* server, byte_buffer* buffer) const; void unk12(service_server* server, byte_buffer* buffer) const;
static std::string get_user_file_path(const std::string& name); static std::string get_user_file_path(const std::string& name);
}; };

View File

@ -11,6 +11,7 @@ namespace demonware
this->register_task(130, &bdUNK80::unk130); this->register_task(130, &bdUNK80::unk130);
this->register_task(165, &bdUNK80::unk165); this->register_task(165, &bdUNK80::unk165);
this->register_task(193, &bdUNK80::unk193); this->register_task(193, &bdUNK80::unk193);
this->register_task(232, &bdUNK80::unk232);
} }
void bdUNK80::unk42(service_server* server, byte_buffer* /*buffer*/) const void bdUNK80::unk42(service_server* server, byte_buffer* /*buffer*/) const
@ -54,4 +55,11 @@ namespace demonware
auto reply = server->create_reply(this->task_id()); auto reply = server->create_reply(this->task_id());
reply->send(); reply->send();
} }
void bdUNK80::unk232(service_server* server, byte_buffer* /*buffer*/) const
{
// TODO:
auto reply = server->create_reply(this->task_id());
reply->send();
}
} }

View File

@ -14,5 +14,6 @@ namespace demonware
void unk130(service_server* server, byte_buffer* buffer) const; void unk130(service_server* server, byte_buffer* buffer) const;
void unk165(service_server* server, byte_buffer* buffer) const; void unk165(service_server* server, byte_buffer* buffer) const;
void unk193(service_server* server, byte_buffer* buffer) const; void unk193(service_server* server, byte_buffer* buffer) const;
void unk232(service_server* server, byte_buffer* buffer) const;
}; };
} }