Small content streaming fix
This commit is contained in:
parent
a35f7fda19
commit
3a9fed6845
@ -1,12 +1,13 @@
|
|||||||
#include <std_include.hpp>
|
#include <std_include.hpp>
|
||||||
#include "../services.hpp"
|
#include "../services.hpp"
|
||||||
|
#include "game/game.hpp"
|
||||||
|
|
||||||
namespace demonware
|
namespace demonware
|
||||||
{
|
{
|
||||||
bdContentStreaming::bdContentStreaming() : service(50, "bdContentStreaming")
|
bdContentStreaming::bdContentStreaming() : service(50, "bdContentStreaming")
|
||||||
{
|
{
|
||||||
this->register_task(2, &bdContentStreaming::unk2);
|
this->register_task(2, &bdContentStreaming::unk2);
|
||||||
this->register_task(3, &bdContentStreaming::unk3);
|
this->register_task(3, &bdContentStreaming::list_all_publisher_files);
|
||||||
}
|
}
|
||||||
|
|
||||||
void bdContentStreaming::unk2(service_server* server, byte_buffer* /*buffer*/) const
|
void bdContentStreaming::unk2(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
@ -16,9 +17,29 @@ namespace demonware
|
|||||||
reply->send();
|
reply->send();
|
||||||
}
|
}
|
||||||
|
|
||||||
void bdContentStreaming::unk3(service_server* server, byte_buffer* /*buffer*/) const
|
void bdContentStreaming::list_all_publisher_files(service_server* server, byte_buffer* buffer) const
|
||||||
{
|
{
|
||||||
// TODO:
|
std::uint32_t start_date;
|
||||||
|
buffer->read_uint32(&start_date);
|
||||||
|
|
||||||
|
std::uint16_t max_num_results;
|
||||||
|
buffer->read_uint16(&max_num_results);
|
||||||
|
|
||||||
|
std::uint16_t offset;
|
||||||
|
buffer->read_uint16(&offset);
|
||||||
|
|
||||||
|
std::uint16_t category;
|
||||||
|
buffer->read_uint16(&category);
|
||||||
|
|
||||||
|
std::string filename;
|
||||||
|
buffer->read_string(&filename);
|
||||||
|
|
||||||
|
/*if(filename.empty())
|
||||||
|
{
|
||||||
|
server->create_reply(this->task_id(), game::BD_NO_FILE)->send();
|
||||||
|
return;
|
||||||
|
}*/
|
||||||
|
|
||||||
auto reply = server->create_reply(this->task_id());
|
auto reply = server->create_reply(this->task_id());
|
||||||
reply->send();
|
reply->send();
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,6 @@ namespace demonware
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
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 list_all_publisher_files(service_server* server, byte_buffer* buffer) const;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user