Add HxCryptLite (tested game: https://vndb.org/v16483 )

This commit is contained in:
2026-05-04 19:11:17 +08:00
parent b9bd5179ec
commit a52953a7dd
9 changed files with 431 additions and 8 deletions

View File

@@ -47,6 +47,16 @@ pub struct SimplePackEntry<'a, T: Read> {
pub name: String,
}
impl<'a, T: Read> SimplePackEntry<'a, T> {
pub fn total_size(&self) -> u64 {
self.total
}
pub fn is_eof(&self) -> bool {
self.current >= self.total
}
}
impl<'a, T: Read> Drop for SimplePackEntry<'a, T> {
fn drop(&mut self) {
let to_skip = self.total - self.current;