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

Method post_bundle

source/MaaAgentServer/RemoteInstance/RemoteResource.cpp:20–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20MaaResId RemoteResource::post_bundle(const std::filesystem::path& path)
21{
22 ResourcePostBundleReverseRequest req {
23 .resource_id = resource_id_,
24 .path = path_to_utf8_string(path),
25 };
26 auto resp_opt = server_.send_and_recv<ResourcePostBundleReverseResponse>(req);
27 if (!resp_opt) {
28 return MaaInvalidId;
29 }
30 return resp_opt->res_id;
31}
32
33MaaResId RemoteResource::post_ocr_model(const std::filesystem::path& path)
34{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected