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

Function MaaReplayControllerCreate

source/MaaFramework/API/MaaFramework.cpp:164–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164MaaController* MaaReplayControllerCreate(const char* recording_path)
165{
166 LogFunc << VAR(recording_path);
167
168 if (!recording_path) {
169 LogError << "recording_path is null";
170 return nullptr;
171 }
172
173 auto control_unit = MAA_NS::ReplayControlUnitLibraryHolder::create_control_unit(recording_path);
174
175 if (!control_unit) {
176 LogError << "Failed to create control unit";
177 return nullptr;
178 }
179
180 return new MAA_CTRL_NS::ControllerAgent(std::move(control_unit));
181}
182
183MaaController* MaaRecordControllerCreate(MaaController* inner, const char* recording_path)
184{

Callers 2

ctorMethod · 0.50
pipeline_smokingFunction · 0.50

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected