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

Function MaaDbgControllerCreate

source/MaaFramework/API/MaaFramework.cpp:145–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145MaaController* MaaDbgControllerCreate(const char* read_path)
146{
147 LogFunc << VAR(read_path);
148
149 if (!read_path) {
150 LogError << "read_path is null";
151 return nullptr;
152 }
153
154 auto control_unit = MAA_NS::DbgControlUnitLibraryHolder::create_control_unit(read_path);
155
156 if (!control_unit) {
157 LogError << "Failed to create control unit";
158 return nullptr;
159 }
160
161 return new MAA_CTRL_NS::ControllerAgent(std::move(control_unit));
162}
163
164MaaController* MaaReplayControllerCreate(const char* recording_path)
165{

Callers 2

ctorMethod · 0.50
run_without_fileFunction · 0.50

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected