mirror of
https://github.com/xavo95/repak.git
synced 2025-06-16 14:31:15 +00:00
fix: updated per requests
This commit is contained in:
parent
a7c0d3d6df
commit
d248660be7
1 changed files with 2 additions and 11 deletions
|
@ -350,17 +350,8 @@ impl Entry {
|
||||||
|
|
||||||
let mut data_len = data.len();
|
let mut data_len = data.len();
|
||||||
#[cfg(feature = "wuthering-waves")]
|
#[cfg(feature = "wuthering-waves")]
|
||||||
{
|
if let Some(Compression::Zlib) = self.compression_slot.and_then(|c| compression.get(c as usize).cloned()) {
|
||||||
data_len = match self.compression_slot.and_then(|c| compression[c as usize]) {
|
data_len = data_len.min(2048);
|
||||||
Some(Compression::Zlib) => {
|
|
||||||
if data_len > 2048 {
|
|
||||||
2048
|
|
||||||
} else {
|
|
||||||
data_len
|
|
||||||
}
|
|
||||||
},
|
|
||||||
_ => data_len,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for block in data[..data_len].chunks_mut(16) {
|
for block in data[..data_len].chunks_mut(16) {
|
||||||
|
|
Loading…
Reference in a new issue