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

Method query_resource

source/MaaAgentClient/Client/AgentClient.cpp:2685–2693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2683}
2684
2685MaaResource* AgentClient::query_resource(const std::string& resource_id)
2686{
2687 auto it = resource_map_.find(resource_id);
2688 if (it == resource_map_.end()) {
2689 LogError << "resource not found" << VAR(resource_id);
2690 return nullptr;
2691 }
2692 return it->second;
2693}
2694
2695void AgentClient::res_event_sink(void* handle, const char* message, const char* details_json, void* trans_arg)
2696{

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected