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

Function MaaControllerCachedImage

source/Common/MaaController.cpp:356–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356MaaBool MaaControllerCachedImage(const MaaController* ctrl, MaaImageBuffer* buffer)
357{
358 if (!ctrl || !buffer) {
359 LogError << "handle is null";
360 return false;
361 }
362
363 auto img = ctrl->cached_image();
364 if (img.empty()) {
365 LogError << "image is empty";
366 return false;
367 }
368
369 buffer->set(std::move(img));
370 return true;
371}
372
373MaaBool MaaControllerGetUuid(MaaController* ctrl, MaaStringBuffer* buffer)
374{

Callers 4

my_actionFunction · 0.85
get_cached_imageMethod · 0.85
save_screenshotFunction · 0.85
my_actionFunction · 0.85

Calls 4

moveFunction · 0.85
cached_imageMethod · 0.45
emptyMethod · 0.45
setMethod · 0.45

Tested by 1

save_screenshotFunction · 0.68