diff --git a/Legacy/Libido/ArcARC.cs b/Legacy/Libido/ArcARC.cs index 6728f14b..9eb66d02 100644 --- a/Legacy/Libido/ArcARC.cs +++ b/Legacy/Libido/ArcARC.cs @@ -23,6 +23,7 @@ // IN THE SOFTWARE. // +using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.IO; @@ -60,10 +61,10 @@ namespace GameRes.Formats.Libido if (0 == name_buf[j]) break; } - if (0 == j) + if (0 == j || -1 != Array.IndexOf (name_buf, 0xFF, 0, j)) return null; var name = Encodings.cp932.GetString (name_buf, 0, j); - var entry = FormatCatalog.Instance.Create (name); + var entry = Create (name); entry.UnpackedSize = file.View.ReadUInt32 (index_offset+0x14); entry.Size = file.View.ReadUInt32 (index_offset+0x18); entry.Offset = file.View.ReadUInt32 (index_offset+0x1C);