Cleanup
This commit is contained in:
parent
1ddaa0b6a8
commit
50e3a00040
@ -49,10 +49,6 @@ namespace demonware
|
||||
std::string identity{};
|
||||
std::string token{};
|
||||
|
||||
#ifdef DEBUG
|
||||
printf("%s\n", packet.data());
|
||||
#endif
|
||||
|
||||
rapidjson::Document j;
|
||||
j.Parse(packet.data(), packet.size());
|
||||
|
||||
@ -136,9 +132,6 @@ namespace demonware
|
||||
|
||||
auto seed = std::to_string(iv_seed);
|
||||
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("server_ticket", rapidjson::StringRef(auth_data_b64.data(), auth_data_b64.size()),
|
||||
doc.GetAllocator());
|
||||
@ -166,10 +159,6 @@ namespace demonware
|
||||
|
||||
raw_reply reply(result);
|
||||
|
||||
#ifdef DEBUG
|
||||
printf("sending reply: %s\n", result.data());
|
||||
#endif
|
||||
|
||||
this->send_reply(&reply);
|
||||
|
||||
#ifdef DEBUG
|
||||
|
@ -9,6 +9,7 @@ namespace demonware
|
||||
this->register_task(2, &bdMatchMaking2::unk2);
|
||||
this->register_task(3, &bdMatchMaking2::unk3);
|
||||
this->register_task(5, &bdMatchMaking2::unk5);
|
||||
this->register_task(10, &bdMatchMaking2::unk10);
|
||||
this->register_task(16, &bdMatchMaking2::unk16);
|
||||
}
|
||||
|
||||
@ -40,6 +41,13 @@ namespace demonware
|
||||
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
|
||||
{
|
||||
// TODO:
|
||||
|
@ -12,6 +12,7 @@ namespace demonware
|
||||
void unk2(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 unk10(service_server* server, byte_buffer* buffer) const;
|
||||
void unk16(service_server* server, byte_buffer* buffer) const;
|
||||
};
|
||||
}
|
||||
|
@ -13,9 +13,9 @@ namespace demonware
|
||||
{
|
||||
this->register_task(20, &bdStorage::list_publisher_files);
|
||||
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(13, &bdStorage::unk13);
|
||||
this->register_task(12, &bdStorage::unk12);
|
||||
|
||||
this->map_publisher_resource("motd-.*\\.txt", DW_MOTD);
|
||||
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:
|
||||
auto reply = server->create_reply(this->task_id());
|
||||
|
@ -20,7 +20,7 @@ namespace demonware
|
||||
void get_publisher_file(service_server* server, byte_buffer* buffer);
|
||||
void set_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);
|
||||
};
|
||||
|
@ -11,6 +11,7 @@ namespace demonware
|
||||
this->register_task(130, &bdUNK80::unk130);
|
||||
this->register_task(165, &bdUNK80::unk165);
|
||||
this->register_task(193, &bdUNK80::unk193);
|
||||
this->register_task(232, &bdUNK80::unk232);
|
||||
}
|
||||
|
||||
void bdUNK80::unk42(service_server* server, byte_buffer* /*buffer*/) const
|
||||
@ -54,4 +55,11 @@ namespace demonware
|
||||
auto reply = server->create_reply(this->task_id());
|
||||
reply->send();
|
||||
}
|
||||
|
||||
void bdUNK80::unk232(service_server* server, byte_buffer* /*buffer*/) const
|
||||
{
|
||||
// TODO:
|
||||
auto reply = server->create_reply(this->task_id());
|
||||
reply->send();
|
||||
}
|
||||
}
|
||||
|
@ -14,5 +14,6 @@ namespace demonware
|
||||
void unk130(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 unk232(service_server* server, byte_buffer* buffer) const;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user