mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
fix: 资源文件夹不存在时的接口返回值
This commit is contained in:
@@ -25,6 +25,11 @@
|
||||
|
||||
bool asst::ResourceLoader::load(const std::filesystem::path& path)
|
||||
{
|
||||
if (!std::filesystem::exists(path)) {
|
||||
Log.error("Resource path not exists, path:", path);
|
||||
return false;
|
||||
}
|
||||
|
||||
#define LoadResourceAndCheckRet(Config, Filename) \
|
||||
{ \
|
||||
LogTraceScope(std::string("LoadResourceAndCheckRet ") + #Config); \
|
||||
|
||||
Reference in New Issue
Block a user