| 53 | } |
| 54 | } |
| 55 | |
| 56 | void ResourceBundle::add_model_file(std::string id, const std::filesystem::path & relative_path) { |
| 57 | add_file(std::move(id), resolve_model_file(model_root_, relative_path)); |
| 58 | } |
| 59 | |
| 60 | bool ResourceBundle::add_optional_model_file(std::string id, const std::filesystem::path & relative_path) { |
| 61 | const auto path = resolve_model_file(model_root_, relative_path); |
| 62 | if (!engine::io::is_existing_file(path)) { |
| 63 | return false; |
| 64 | } |
| 65 | add_file(std::move(id), path); |
| 66 | return true; |
no outgoing calls
no test coverage detected