mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
chore: 优化一个没啥用的加载逻辑
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user