chore: 优化一个没啥用的加载逻辑

This commit is contained in:
MistEO
2023-01-11 20:25:13 +08:00
parent 11c53cea3c
commit f30a8b3a98

View File

@@ -85,13 +85,8 @@ bool asst::ResourceLoader::load(const std::filesystem::path& path)
#undef LoadTemplByConfigAndCheckRet
#undef LoadResourceAndCheckRet
if (!config_future.get() || !tile_future.get() || !ocr_future.get() || !ocr_char_future.get()) {
m_loaded = false;
return false;
}
m_loaded = true;
return true;
m_loaded = config_future.get() && tile_future.get() && ocr_future.get() && ocr_char_future.get();
return m_loaded;
}
bool asst::ResourceLoader::loaded() const noexcept