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

Function MaaControllerGetShellOutput

source/Common/MaaController.cpp:282–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282MaaBool MaaControllerGetShellOutput(const MaaController* ctrl, MaaStringBuffer* buffer)
283{
284 if (!ctrl || !buffer) {
285 LogError << "handle is null";
286 return false;
287 }
288
289 auto output = ctrl->cached_shell_output();
290 if (output.empty()) {
291 LogWarn << "shell output is empty";
292 }
293
294 buffer->set(std::move(output));
295 return true;
296}
297
298MaaCtrlId MaaControllerPostScreencap(MaaController* ctrl)
299{

Callers

nothing calls this directly

Calls 4

moveFunction · 0.85
cached_shell_outputMethod · 0.45
emptyMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected