mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 10:00:44 +08:00
feat: 主目录存在 DEBUG.txt 时每次开始任务都重新解析tasks.json
This commit is contained in:
@@ -51,10 +51,16 @@ std::shared_ptr<asst::TaskInfo> asst::TaskData::get(std::string_view name)
|
||||
return expand_task(name, get_raw(name)).value_or(nullptr);
|
||||
}
|
||||
|
||||
const bool forcedReloadResource = std::ifstream("DEBUG").good() || std::ifstream("DEBUG.txt").good();
|
||||
|
||||
bool asst::TaskData::parse(const json::value& json)
|
||||
{
|
||||
LogTraceFunction;
|
||||
|
||||
if (forcedReloadResource) {
|
||||
m_all_tasks_info.clear();
|
||||
}
|
||||
|
||||
const auto& json_obj = json.as_object();
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user