fix: 资源文件夹不存在时的接口返回值

This commit is contained in:
MistEO
2023-04-22 05:02:43 +08:00
parent 762e25b5f5
commit 499ee8293c

View File

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