| 248 | } |
| 249 | |
| 250 | const 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 | |
| 260 | Interactor::ElevationResult Interactor::check_and_elevate_if_needed() |
| 261 | { |
nothing calls this directly
no outgoing calls
no test coverage detected