Skip to content

Commit

Permalink
Cleanup, fix broken workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
magicaldave committed Mar 2, 2024
1 parent b6e7018 commit 94f315f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,6 @@ fn main() {

indices += 1;
}

// match cell {
// Some(mut cell) => {}
// None => {}
// }

// println!("{mesh_name} added to HashSet");
// meshes.insert(mesh_name, mesh);
}

if let Some(cell) = cell {
Expand All @@ -257,9 +249,7 @@ fn main() {
plugin
.objects
.retain(|obj| !processed_base_objects.contains(&obj.editor_id().to_string()));
// plugin.objects.retain(|obj| !created_objects.contains(obj));
plugin.objects.extend(created_objects);
// plugin.objects.push(esp::TES3Object::Cell(cell));
plugin.sort_objects();
plugin
.save_path(plugin_name)
Expand Down Expand Up @@ -341,7 +331,7 @@ fn create_workdir(map_name: &String) -> (String, String) {
.rfind('.')
.expect("Map should always have an extension, this is probably a directory");

let workdir = &map_name[..dir_index - 3];
let workdir = &map_name[..dir_index];
let map_dir = &map_name[dir_index + 1..ext_index];

if !fs::metadata(format!("{workdir}")).is_ok() {
Expand Down

0 comments on commit 94f315f

Please sign in to comment.