* profile info (todo) * fix path & server running check * temp progress * more progress idek i need xuids * profile info v2 * fix bdProfiles reading bad data * custom emblem storage + cleanup * tiny bit of progress but stalling in buffer read * stuff * small stuff * Update profile_infos.cpp * update * player xuid packet, stuff... kinda works? * works * cleanup * fix * cleanup * cleanup on aisle 2 --------- Co-authored-by: m <mjkzyalt@gmail.com>
29 lines
1.0 KiB
C++
29 lines
1.0 KiB
C++
#pragma once
|
|
|
|
namespace demonware
|
|
{
|
|
class bdStorage final : public service
|
|
{
|
|
public:
|
|
bdStorage();
|
|
|
|
static std::string get_user_file_path(const std::string& name);
|
|
|
|
private:
|
|
using callback = std::function<std::string()>;
|
|
using resource_variant = std::variant<std::string, callback>;
|
|
std::vector<std::pair<std::regex, resource_variant>> publisher_resources_;
|
|
|
|
void map_publisher_resource(const std::string& expression, INT id);
|
|
void map_publisher_resource_variant(const std::string& expression, resource_variant resource);
|
|
bool load_publisher_resource(const std::string& name, std::string& buffer);
|
|
|
|
void listAllPublisherFiles(service_server* server, byte_buffer* buffer);
|
|
void getPublisherFile(service_server* server, byte_buffer* buffer);
|
|
void uploadAndValidateFiles(service_server* server, byte_buffer* buffer) const;
|
|
void uploadFiles(service_server* server, byte_buffer* buffer) const;
|
|
void getFiles(service_server* server, byte_buffer* buffer) const;
|
|
void getFile(service_server* server, byte_buffer* buffer) const;
|
|
};
|
|
}
|