t7x/src/client/game/demonware/services/bdDDL.cpp

30 lines
579 B
C++
Raw Normal View History

2022-09-24 09:42:01 -04:00
#include <std_include.hpp>
#include "../services.hpp"
namespace demonware
{
bdDDL::bdDDL() : service(96, "bdDDL")
{
2023-01-04 12:45:59 -05:00
this->register_task(1, &bdDDL::verifyDDLFiles);
2022-09-24 09:42:01 -04:00
}
2023-01-04 12:45:59 -05:00
void bdDDL::verifyDDLFiles(service_server* server, byte_buffer* buffer) const
2022-09-24 09:42:01 -04:00
{
2023-01-03 14:24:41 -05:00
uint32_t count;
buffer->read_uint32(&count);
const auto reply = server->create_reply(this->task_id());
for (uint32_t i = 0; i < count; i++)
{
auto* checksum = new bdDDLChecksumResult;
checksum->deserialize(buffer);
checksum->checksum_matched = true;
reply->add(checksum);
}
2022-09-24 09:42:01 -04:00
reply->send();
}
}