| 163 | } |
| 164 | |
| 165 | MaaBool CustomRequestUuid(void* trans_arg, MaaStringBuffer* buffer) |
| 166 | { |
| 167 | auto customCtx = reinterpret_cast<CustomControllerContext*>(trans_arg); |
| 168 | auto ctx = customCtx->callbacks["request_uuid"]; |
| 169 | auto result = ctx->Call<std::optional<std::string>>([&](maajs::FunctionType func) { return func.Call({ }); }); |
| 170 | if (result) { |
| 171 | StringBuffer(buffer, false).set(*result); |
| 172 | return true; |
| 173 | } |
| 174 | else { |
| 175 | return false; |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | MaaControllerFeature CustomGetFeatures(void* trans_arg) |
| 180 | { |
nothing calls this directly
no test coverage detected