From f0eb03621752686d6526052dbfd69eec72e964c3 Mon Sep 17 00:00:00 2001 From: scientificworld Date: Sun, 14 Dec 2025 14:34:39 +0800 Subject: [PATCH] fix: DAT/FWA some archives cannot be opened tested on image.dat from Boy Meets Girl - Trial Edition --- Legacy/Nug/ArcDAT.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Legacy/Nug/ArcDAT.cs b/Legacy/Nug/ArcDAT.cs index 67b8da01..96d4cc73 100644 --- a/Legacy/Nug/ArcDAT.cs +++ b/Legacy/Nug/ArcDAT.cs @@ -49,12 +49,12 @@ namespace GameRes.Formats.Nug uint index_size = (uint)count * 0x40u; if (index_size > file.View.Reserve (index_offset, index_size)) return null; - var dir = new List (count); + var dir = new List (); for (int i = 0; i < count; ++i) { uint entry_size = file.View.ReadUInt32 (index_offset); if (entry_size < 0x40) - return null; + break; var name = file.View.ReadString (index_offset+0x10, 0x30); var entry = Create (name); entry.Offset = file.View.ReadUInt32 (index_offset+4);