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();
|
||||
#[cfg(feature = "wuthering-waves")]
|
||||
{
|
||||
data_len = match self.compression_slot.and_then(|c| compression[c as usize]) {
|
||||
Some(Compression::Zlib) => {
|
||||
if data_len > 2048 {
|
||||
2048
|
||||
} else {
|
||||
data_len
|
||||
}
|
||||
},
|
||||
_ => data_len,
|
||||
};
|
||||
if let Some(Compression::Zlib) = self.compression_slot.and_then(|c| compression.get(c as usize).cloned()) {
|
||||
data_len = data_len.min(2048);
|
||||
}
|
||||
|
||||
for block in data[..data_len].chunks_mut(16) {
|
||||
|
|
Loading…
Reference in a new issue