diff --git a/crates/dtmm/src/controller/import.rs b/crates/dtmm/src/controller/import.rs index 5ca4068..68c54a5 100644 --- a/crates/dtmm/src/controller/import.rs +++ b/crates/dtmm/src/controller/import.rs @@ -244,8 +244,6 @@ fn extract_mod_config(archive: &mut ZipArchive) -> Result<(Mo None }; - tracing::debug!(?legacy_mod_data); - if let Some(name) = find_archive_file(archive, "dtmt.cfg") { let mut f = archive .by_name(&name) @@ -278,24 +276,6 @@ fn extract_mod_config(archive: &mut ZipArchive) -> Result<(Mo Ok((cfg, root)) } - } else if let Some((mod_id, resources, root)) = legacy_mod_data { - let cfg = ModConfig { - bundled: false, - dir: PathBuf::new(), - id: mod_id.clone(), - name: mod_id, - summary: "A mod for the game Warhammer 40,000: Darktide".into(), - version: "N/A".into(), - description: None, - author: None, - image: None, - categories: Vec::new(), - packages: Vec::new(), - resources, - depends: Vec::new(), - }; - - Ok((cfg, root)) } else { eyre::bail!( "Mod needs a config file or `.mod` file. \ @@ -434,8 +414,6 @@ pub(crate) async fn import_mod(state: ActionState, info: FileInfo) -> Result Result Result