mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
@@ -83,6 +83,8 @@ bool asst::ResourceLoader::load(const std::filesystem::path& path)
|
||||
return false;
|
||||
}
|
||||
|
||||
std::unique_lock<std::mutex> lock(m_entry_mutex);
|
||||
|
||||
#define LoadResourceAndCheckRet(Config, Filename) \
|
||||
{ \
|
||||
auto full_path = path / Filename; \
|
||||
|
||||
@@ -56,6 +56,7 @@ namespace asst
|
||||
|
||||
private:
|
||||
bool m_loaded = false;
|
||||
std::mutex m_entry_mutex;
|
||||
|
||||
// only for async load
|
||||
bool m_load_thread_exit = false;
|
||||
|
||||
Reference in New Issue
Block a user