MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / parse

Method parse

source/MaaAdbControlUnit/Manager/ScreencapAgent.cpp:122–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122bool ScreencapAgent::parse(const json::value& config)
123{
124 bool ret = false;
125
126 for (auto it = units_.begin(); it != units_.end();) {
127 if (it->second->parse(config)) {
128 ret = true; // 任一成功就行
129 ++it;
130 }
131 else {
132 LogWarn << "failed to parse" << it->first;
133 it = units_.erase(it);
134 }
135 }
136
137 return ret;
138}
139
140bool ScreencapAgent::init()
141{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected