File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
source/MaaFramework/Resource Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -600,13 +600,13 @@ bool ResourceMgr::load(const std::filesystem::path& path)
600600
601601 bool to_load = false ;
602602 bool ret = true ;
603- if (auto p = path / " default_pipeline.jsonc" _path; std::filesystem::exists (p )) {
603+ if (auto jc_path = path / " default_pipeline.jsonc" _path; std::filesystem::exists (jc_path )) {
604604 to_load = true ;
605- ret &= default_pipeline_.load (p );
605+ ret &= default_pipeline_.load (jc_path );
606606 }
607- else if (auto p = path / " default_pipeline.json" _path; std::filesystem::exists (p )) {
607+ else if (auto j_path = path / " default_pipeline.json" _path; std::filesystem::exists (j_path )) {
608608 to_load = true ;
609- ret &= default_pipeline_.load (p );
609+ ret &= default_pipeline_.load (j_path );
610610 }
611611
612612 if (auto p = path / " pipeline" _path; std::filesystem::exists (p)) {
You can’t perform that action at this time.
0 commit comments