From 0b41154fe6fe0ab025347ab5ca66938e295728b4 Mon Sep 17 00:00:00 2001 From: Alexander Tarasov Date: Tue, 18 Mar 2025 18:02:07 +0300 Subject: [PATCH] fixed deleting build_romfs and build_pfs0 before it's usage --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 03608b7..ebece43 100644 --- a/src/main.rs +++ b/src/main.rs @@ -151,9 +151,6 @@ fn main() -> Result<(), Error> { } } - remove_file(&build_romfs_path)?; - remove_file(&build_pfs0_path)?; - println!("Building {}...", output_path.display()); std::process::Command::new(&build_pfs0_path) .current_dir(&temp_path) @@ -161,6 +158,8 @@ fn main() -> Result<(), Error> { .arg(&output_path) .status()?; + remove_file(&build_romfs_path)?; + remove_file(&build_pfs0_path)?; remove_dir_all(&temp_path)?; Ok(())