Use std::filesystem::path and u8string to ensure UTF-8 is used for paths on Windows

This commit is contained in:
Yousef Khadadeh 2025-11-21 08:35:47 +03:00
parent 5f4bc6e1cb
commit 6839e529c1
10 changed files with 59 additions and 60 deletions

View file

@ -39,7 +39,7 @@ class ResourceManager {
void update();
void copy_resource_set_to_map(const std::unordered_set<ServerClientID>& resourceSet, std::unordered_map<ServerClientID, ResourceData>& resourceMap) const;
void init_client_callbacks();
ServerClientID add_resource_file(std::string_view fileName);
ServerClientID add_resource_file(const std::filesystem::path& filePath);
ServerClientID add_resource(const ResourceData& resource);
ResourceDisplay* get_display_data(const ServerClientID& fileID);
std::optional<ResourceData> get_resource(const ServerClientID& id) const;