1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-04 19:14:08 +02:00

bumb dependencies

This commit is contained in:
Robin Appelman 2022-02-17 21:27:52 +01:00
commit f890ff2847
3 changed files with 14 additions and 11 deletions

View file

@ -61,7 +61,7 @@ impl<'a> BspFile<'a> {
let mut cursor = Cursor::new(raw_data);
if b"LZMA" != &<[u8; 4]>::read(&mut cursor)? {
return Err(BspError::LumpDecompressError(
lzma_rs::error::Error::LZMAError("Invalid lzma header".into()),
lzma_rs::error::Error::LzmaError("Invalid lzma header".into()),
));
}
let actual_size: u32 = cursor.read_le()?;
@ -71,6 +71,8 @@ impl<'a> BspFile<'a> {
&mut data,
&Options {
unpacked_size: UnpackedSize::UseProvided(Some(actual_size as u64)),
allow_incomplete: false,
memlimit: None,
},
)
.map_err(BspError::LumpDecompressError)?;