Fix regression reading lossless WBFS/CISO

This commit is contained in:
Luke Street 2025-08-19 20:22:32 -06:00
parent 914e777cc5
commit e5c1f60121
3 changed files with 4 additions and 4 deletions

4
Cargo.lock generated
View File

@ -557,7 +557,7 @@ checksum = "cf5a574dadd7941adeaa71823ecba5e28331b8313fb2e1c6a5c7e5981ea53ad6"
[[package]]
name = "nod"
version = "2.0.0-alpha.1"
version = "2.0.0-alpha.2"
dependencies = [
"adler",
"aes",
@ -591,7 +591,7 @@ dependencies = [
[[package]]
name = "nodtool"
version = "2.0.0-alpha.1"
version = "2.0.0-alpha.2"
dependencies = [
"argp",
"crc32fast",

View File

@ -12,7 +12,7 @@ strip = "debuginfo"
codegen-units = 1
[workspace.package]
version = "2.0.0-alpha.1"
version = "2.0.0-alpha.2"
edition = "2024"
rust-version = "1.85"
authors = ["Luke Street <luke@street.dev>"]

View File

@ -92,7 +92,7 @@ impl NKitHeader {
block_size: u32,
has_junk_bits: bool,
) -> Option<Self> {
let magic: MagicBytes = read_at(reader, 0).ok()?;
let magic: MagicBytes = read_at(reader, pos).ok()?;
if magic == *b"NKIT" {
let mut reader = ReadAdapter::new(reader, pos);
match NKitHeader::read_from(&mut reader, block_size, has_junk_bits) {