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

Method connected

source/MaaCustomControlUnit/Manager/CustomControlUnitMgr.cpp:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26bool CustomControlUnitMgr::connected() const
27{
28 if (!controller_ || !controller_->connected) {
29 // connected 回调是可选的,未提供时默认返回 true(已连接)
30 LogTrace << "connected callback not provided, returning true";
31 return true;
32 }
33
34 LogFunc << VAR_VOIDP(controller_) << VAR_VOIDP(controller_->connected);
35 return controller_->connected(controller_arg_);
36}
37
38bool CustomControlUnitMgr::request_uuid(std::string& uuid)
39{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected