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

Method invoke_app

source/MaaAdbControlUnit/Invoke/InvokeApp.cpp:201–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201std::shared_ptr<ChildPipeIOStream> InvokeApp::invoke_app(const std::string& package)
202{
203 LogFunc << VAR(package);
204
205 merge_replacement({ { "{APP_WORKING_FILE}", tempname_ }, { "{PACKAGE_NAME}", package } });
206
207 auto argv_opt = invoke_app_argv_.gen(argv_replace_);
208 if (!argv_opt) {
209 return nullptr;
210 }
211
212 return std::make_shared<ChildPipeIOStream>(argv_opt->exec, argv_opt->args);
213}
214
215MAA_CTRL_UNIT_NS_END

Callers 1

invoke_and_read_infoMethod · 0.80

Calls 1

genMethod · 0.80

Tested by

no test coverage detected