aboutsummaryrefslogtreecommitdiff
path: root/unpacker
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-01-06 02:48:19 +0300
committerValentin Popov <valentin@popov.link>2024-01-06 02:48:19 +0300
commitcec2ad2c6217dda5ae0b6332ca594930167af8c5 (patch)
tree98a9d420a715279e5432c707cff2eaab6ea87537 /unpacker
parent58b6314dec29debf8e595f3d75c5818ead648d49 (diff)
downloadfparkan-cec2ad2c6217dda5ae0b6332ca594930167af8c5.tar.xz
fparkan-cec2ad2c6217dda5ae0b6332ca594930167af8c5.zip
Finished the algorithm for packing and unpacking files
Diffstat (limited to 'unpacker')
-rw-r--r--unpacker/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/unpacker/src/main.rs b/unpacker/src/main.rs
index 9d27385..2a84688 100644
--- a/unpacker/src/main.rs
+++ b/unpacker/src/main.rs
@@ -102,7 +102,7 @@ fn unpack(input: String, output: String) {
// Распаковываем файлы в директорию
for element in &list {
- let path = format!("{}/{}", output, element.name);
+ let path = format!("{}/{}.{}", output, element.name, element.index);
let mut file = File::create(path).unwrap();
let mut file_buffer = vec![0u8; element.size as usize];