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

Method find_current_controller

source/MaaPiCli/CLI/interactor.cpp:250–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250const MAA_PROJECT_INTERFACE_NS::InterfaceData::Controller* Interactor::find_current_controller() const
251{
252 using namespace MAA_PROJECT_INTERFACE_NS;
253
254 const auto& name = config_.configuration().controller.name;
255 auto it = std::ranges::find(config_.interface_data().controller, name, std::mem_fn(&InterfaceData::Controller::name));
256
257 return (it != config_.interface_data().controller.end()) ? &(*it) : nullptr;
258}
259
260Interactor::ElevationResult Interactor::check_and_elevate_if_needed()
261{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected