From 3a96fd0efdac769667523e93b23b75dd2a52aac7 Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 5 Aug 2015 21:19:57 +0400 Subject: [PATCH] (AbmOpener.TryOpen): prepend name of archive to contained filenames. --- ArcFormats/ArcABM.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArcFormats/ArcABM.cs b/ArcFormats/ArcABM.cs index a998758e..b6b4c2c1 100644 --- a/ArcFormats/ArcABM.cs +++ b/ArcFormats/ArcABM.cs @@ -87,10 +87,11 @@ namespace GameRes.Formats.Lilim var dir = new List (count); long next_offset = file.View.ReadUInt32 (0x42); uint current_offset = 0x46; + string base_name = Path.GetFileNameWithoutExtension (file.Name); for (int i = 0; i < count; ++i) { var entry = new AbmEntry { - Name = i.ToString ("D4") + ".tga", + Name = string.Format ("{0}#{1:D4}.tga", base_name, i), Type = "image", Offset = next_offset, Index = i,