mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 17:57:01 +08:00
fix: 为Resource loader 添加重入锁
This commit is contained in:
@@ -78,6 +78,9 @@ bool asst::ResourceLoader::load(const std::filesystem::path& path)
|
||||
return false;
|
||||
}
|
||||
|
||||
static std::mutex load_mutex;
|
||||
std::unique_lock<std::mutex> lock(load_mutex);
|
||||
|
||||
#define LoadResourceAndCheckRet(Config, Filename) \
|
||||
{ \
|
||||
auto full_path = path / Filename; \
|
||||
|
||||
Reference in New Issue
Block a user