fix: 简单修复一下异步Load导致的错误

fix #6250
This commit is contained in:
MistEO
2023-09-10 12:43:32 +08:00
parent 5e3601a433
commit c15ef1cc22
2 changed files with 3 additions and 0 deletions

View File

@@ -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; \