| 280 | } |
| 281 | |
| 282 | MaaBool 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 | |
| 298 | MaaCtrlId MaaControllerPostScreencap(MaaController* ctrl) |
| 299 | { |
nothing calls this directly
no test coverage detected