| 273 | } |
| 274 | |
| 275 | std::optional<json::object> ResourceMgr::get_node_data(const std::string& node_name) const |
| 276 | { |
| 277 | const auto& pp_map = pipeline_res_.get_pipeline_data_map(); |
| 278 | auto it = pp_map.find(node_name); |
| 279 | if (it == pp_map.end()) { |
| 280 | return std::nullopt; |
| 281 | } |
| 282 | |
| 283 | return PipelineDumper::dump(it->second); |
| 284 | } |
| 285 | |
| 286 | void ResourceMgr::register_custom_recognition(const std::string& name, MaaCustomRecognitionCallback recognition, void* trans_arg) |
| 287 | { |