From 199008f80300ae6c433909f62e20ec5a08772fb0 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sun, 29 Jun 2025 17:22:55 +0800 Subject: [PATCH] . --- src/scripts/cat_system/image/hg3.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/cat_system/image/hg3.rs b/src/scripts/cat_system/image/hg3.rs index 37d1f85..00767ff 100644 --- a/src/scripts/cat_system/image/hg3.rs +++ b/src/scripts/cat_system/image/hg3.rs @@ -280,7 +280,7 @@ impl<'a> Hg3Reader<'a> { self.m_input.pos = self.m_info.header_size as usize; let mut image_type = [0; 8]; self.m_input.read_exact(&mut image_type)?; - if &image_type == b"img0000" { + if &image_type == b"img0000\0" { return self.unpack_img0000(); } else { return Err(anyhow::anyhow!("Unsupported image type: {:?}", image_type));