From 03f8fb00b220a254818869f37481056e7d1c6a41 Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 3 Apr 2017 17:39:01 +0400 Subject: [PATCH] (TlgFormat.Read): set position in ReadTlg method. --- ArcFormats/KiriKiri/ImageTLG.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ArcFormats/KiriKiri/ImageTLG.cs b/ArcFormats/KiriKiri/ImageTLG.cs index f1b3e913..d2c663f7 100644 --- a/ArcFormats/KiriKiri/ImageTLG.cs +++ b/ArcFormats/KiriKiri/ImageTLG.cs @@ -95,7 +95,6 @@ namespace GameRes.Formats.KiriKiri public override ImageData Read (IBinaryStream file, ImageMetaData info) { var meta = (TlgMetaData)info; - file.Position = meta.DataOffset; var image = ReadTlg (file, meta); @@ -129,6 +128,7 @@ namespace GameRes.Formats.KiriKiri byte[] ReadTlg (IBinaryStream src, TlgMetaData info) { + src.Position = info.DataOffset; if (6 == info.Version) return ReadV6 (src, info); else @@ -167,7 +167,6 @@ namespace GameRes.Formats.KiriKiri if (null == base_info) return null; base_info.FileName = base_name; - base_file.Position = base_info.DataOffset; base_image = ReadTlg (base_file, base_info); } var pixels = BlendImage (base_image, base_info, image, meta);