diff --git a/resource/roguelike_copilot.json b/resource/roguelike/copilot.json similarity index 100% rename from resource/roguelike_copilot.json rename to resource/roguelike/copilot.json diff --git a/resource/roguelike_recruit.json b/resource/roguelike/recruitment.json similarity index 100% rename from resource/roguelike_recruit.json rename to resource/roguelike/recruitment.json diff --git a/resource/roguelike_shopping.json b/resource/roguelike/shopping.json similarity index 100% rename from resource/roguelike_shopping.json rename to resource/roguelike/shopping.json diff --git a/src/MaaCore/Config/ResourceLoader.cpp b/src/MaaCore/Config/ResourceLoader.cpp index f1e1e4c7ea..1b9d2fb1c9 100644 --- a/src/MaaCore/Config/ResourceLoader.cpp +++ b/src/MaaCore/Config/ResourceLoader.cpp @@ -52,9 +52,9 @@ bool asst::ResourceLoader::load(const std::filesystem::path& path) LoadResourceAndCheckRet(GeneralConfig, "config.json"_p); LoadResourceAndCheckRet(RecruitConfig, "recruitment.json"_p); LoadResourceAndCheckRet(StageDropsConfig, "stages.json"_p); - LoadResourceAndCheckRet(RoguelikeCopilotConfig, "roguelike_copilot.json"_p); - LoadResourceAndCheckRet(RoguelikeRecruitConfig, "roguelike_recruit.json"_p); - LoadResourceAndCheckRet(RoguelikeShoppingConfig, "roguelike_shopping.json"_p); + LoadResourceAndCheckRet(RoguelikeCopilotConfig, "roguelike"_p / "copilot.json"_p); + LoadResourceAndCheckRet(RoguelikeRecruitConfig, "roguelike"_p / "recruitment.json"_p); + LoadResourceAndCheckRet(RoguelikeShoppingConfig, "roguelike"_p / "shopping.json"_p); LoadResourceAndCheckRet(BattleDataConfig, "battle_data.json"_p); /* load resource with json and template files*/ diff --git a/src/MaaCore/Config/TaskData.cpp b/src/MaaCore/Config/TaskData.cpp index 4a107cadb2..27bfd6fa35 100644 --- a/src/MaaCore/Config/TaskData.cpp +++ b/src/MaaCore/Config/TaskData.cpp @@ -587,6 +587,7 @@ bool asst::TaskData::syntax_check(const std::string& task_name, const json::valu "action", "algorithm", "baseTask", "cache", "exceededNext", "maskRange", "maxTimes", "next", "onErrorNext", "postDelay", "preDelay", "rectMove", "reduceOtherTimes", "roi", "sub", "subErrorIgnored", "templThreshold", "template", + "specialParams" } }, { AlgorithmType::OcrDetect, { @@ -594,6 +595,7 @@ bool asst::TaskData::syntax_check(const std::string& task_name, const json::valu "fullMatch", "isAscii", "maxTimes", "next", "ocrReplace", "onErrorNext", "postDelay", "preDelay", "rectMove", "reduceOtherTimes", "roi", "sub", "subErrorIgnored", "text", "withoutDet", + "specialParams" } }, { AlgorithmType::JustReturn, {