| 316 | } |
| 317 | |
| 318 | std::optional<std::string> ControllerImpl::get_info() |
| 319 | { |
| 320 | StringBuffer buf; |
| 321 | if (!MaaControllerGetInfo(controller, buf)) { |
| 322 | return std::nullopt; |
| 323 | } |
| 324 | return buf.str(); |
| 325 | } |
| 326 | |
| 327 | std::string ControllerImpl::to_string() |
| 328 | { |
nothing calls this directly
no test coverage detected