*
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user