mirror of
https://github.com/xavo95/repak.git
synced 2025-01-18 19:04:07 +00:00
Fix pak file name creation
This commit is contained in:
parent
543c0927aa
commit
4bc5639d1d
1 changed files with 1 additions and 4 deletions
|
@ -357,12 +357,9 @@ fn unpack(aes_key: Option<aes::Aes256>, action: ActionUnpack) -> Result<(), repa
|
|||
|
||||
fn pack(args: ActionPack) -> Result<(), repak::Error> {
|
||||
let output = args.output.map(PathBuf::from).unwrap_or_else(|| {
|
||||
let mut output = PathBuf::new();
|
||||
output.push(&args.input);
|
||||
// NOTE: don't use `with_extension` here because it will replace e.g. the `.1` in
|
||||
// `test_v1.1`.
|
||||
output.push(".pak");
|
||||
output
|
||||
PathBuf::from(format!("{}.pak", args.input))
|
||||
});
|
||||
|
||||
fn collect_files(paths: &mut Vec<PathBuf>, dir: &Path) -> io::Result<()> {
|
||||
|
|
Loading…
Reference in a new issue