This commit is contained in:
2025-08-11 17:30:19 +06:00
parent efcf8daf7e
commit 9556e1affd
7 changed files with 162 additions and 18 deletions

View File

@@ -74,6 +74,7 @@ void BinaryResourceManager::run() {
if(var.index() == 0) {
std::shared_ptr<ResourceFile> resource = std::get<0>(var);
resource = convertFormate(resource, (EnumBinResource) type);
resource->calcHash();
return resource;
} else {
@@ -311,6 +312,10 @@ BinaryResourceManager::loadFile(const std::vector<fs::path>& assets, const std::
}
}
std::shared_ptr<ResourceFile> convertFormate(std::shared_ptr<ResourceFile> file, EnumBinResource type) {
return file;
}
BinaryResourceManager::BinaryResourceManager(asio::io_context &ioc)
: AsyncObject(ioc), Thread(&BinaryResourceManager::run, this)
{