(args: &[String])
| 187 | } |
| 188 | |
| 189 | fn resolve_content_prefix(args: &[String]) -> Result<String, String> { |
| 190 | if let Some(raw_dlc) = parse_flag_value(args, "--dlc") { |
| 191 | let dlc = validate_dlc_name(&raw_dlc)?; |
| 192 | return Ok(format!("dlc://{dlc}/")); |
| 193 | } |
| 194 | Ok("res://".to_string()) |
| 195 | } |
| 196 | |
| 197 | fn write_new_file(path: &Path, contents: &str) -> Result<(), String> { |
| 198 | if path.exists() { |
no test coverage detected