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

Function MaaTaskerGetLatestNode

source/Common/MaaTasker.cpp:604–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604MaaBool MaaTaskerGetLatestNode(const MaaTasker* tasker, const char* node_name, MaaNodeId* latest_id)
605{
606 if (!tasker) {
607 LogError << "handle is null";
608 return false;
609 }
610
611 if (!node_name) {
612 LogError << "node_name is null";
613 return false;
614 }
615
616 auto result_opt = tasker->get_latest_node(node_name);
617 if (!result_opt) {
618 LogError << "failed to get_latest_node" << VAR(node_name);
619 return false;
620 }
621
622 CheckNullAndWarn(latest_id)
623 {
624 *latest_id = *result_opt;
625 }
626
627 return true;
628}

Callers 1

latest_nodeMethod · 0.85

Calls 1

get_latest_nodeMethod · 0.45

Tested by

no test coverage detected