| 23 | const std::string & value) { |
| 24 | std::filesystem::path path(value); |
| 25 | return path.is_absolute() ? path : base_dir / path; |
| 26 | } |
| 27 | |
| 28 | void set_option_from_json_field( |
| 29 | std::unordered_map<std::string, std::string> & options, |
| 30 | const engine::io::json::Value & object, |
| 31 | const std::string & field, |
| 32 | const std::string & option_key) { |
| 33 | const auto * value = object.find(field); |
| 34 | if (value != nullptr && !value->is_null()) { |
| 35 | set_option(options, option_key, json_option_string(*value)); |
| 36 | } |
| 37 | } |
no test coverage detected