Update main.rs

remove quotes for dropping file to terminal
This commit is contained in:
Haoxuan Di
2025-03-22 11:11:43 +08:00
committed by GitHub
parent 527354a3af
commit 108d8bce92

View File

@@ -39,7 +39,9 @@ fn main_entry() -> eyre::Result<()> {
.default("re_chunk_000.pak.sub_000.pak".to_string())
.with_prompt("Input .pak file path")
.interact_text()
.unwrap();
.unwrap()
.trim_matches(|c| c == '\"' || c == '\'')
.to_string();
let input_path = Path::new(&input);
if !input_path.is_file() {