mirror of
https://github.com/encounter/nod-rs.git
synced 2025-08-21 19:22:13 +00:00
Fix regression reading lossless WBFS/CISO
This commit is contained in:
parent
914e777cc5
commit
e5c1f60121
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -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",
|
||||
|
@ -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>"]
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user