1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-12-16 07:33:20 +00:00

chore: use zip crate version 1.1

This commit is contained in:
2024-04-20 23:49:09 +02:00
parent 1f8bb2f34c
commit 5e297a0353
5 changed files with 120 additions and 43 deletions

View File

@@ -123,9 +123,7 @@ impl InputFile {
let password = _password.unwrap_or_else(|| deobfuscate(env!("OSB_KEY").trim()));
for i in 0..archive.len() {
if let Ok(Ok(mut zip_file)) =
archive.by_index_decrypt(i, password.as_bytes())
{
if let Ok(mut zip_file) = archive.by_index_decrypt(i, password.as_bytes()) {
if zip_file.is_file() && zip_file.name().ends_with(".osc") {
let mut buf = String::new();
let _ = zip_file.read_to_string(&mut buf);