This commit is contained in:
Anna 2022-09-17 08:28:32 -04:00
parent 170604b463
commit 8df9ff8545
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0
2 changed files with 1 additions and 4 deletions

View File

@ -12,7 +12,7 @@ serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "1"
zip = "0.6"
sqpack = { path = "../sqpack", features = ["read"] }
sqpack = { path = "../sqpack-rs", features = ["read"] }
[dev-dependencies]
criterion = "0.4"

View File

@ -4,7 +4,6 @@ use std::io::{Cursor, Read, Seek, SeekFrom, Write};
use flate2::read::DeflateDecoder;
use sqpack::{DatBlockHeader, DatStdFileBlockInfos, FileKind, LodBlock, ModelBlock, SqPackFileInfo, SqPackFileInfoHeader};
use sqpack::binrw::{BinRead, BinWriterExt, VecArgs};
use zip::read::ZipFile;
use zip::ZipArchive;
use crate::{Error, ModPack};
@ -21,7 +20,6 @@ impl<T> WriteSeek for T
pub struct TtmpExtractor<R> {
manifest: ModPack,
zip: RefCell<ZipArchive<R>>,
post: Option<Box<dyn Fn()>>,
}
impl<R: Read + Seek> TtmpExtractor<R> {
@ -31,7 +29,6 @@ impl<R: Read + Seek> TtmpExtractor<R> {
Ok(Self {
manifest,
zip: RefCell::new(zip),
post: None,
})
}