diff --git a/src/pak.rs b/src/pak.rs index 885273f..a3756cb 100644 --- a/src/pak.rs +++ b/src/pak.rs @@ -56,6 +56,12 @@ fn decrypt(key: &Option, bytes: &mut [u8]) -> Result<(), super:: } } +impl PakReader { + pub fn into_reader(self) -> R { + self.reader + } +} + impl PakReader { pub fn new_any(mut reader: R, key: Option) -> Result { for ver in Version::iter() {