mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(AbmOpener.TryOpen): prepend name of archive to contained filenames.
This commit is contained in:
@@ -87,10 +87,11 @@ namespace GameRes.Formats.Lilim
|
|||||||
var dir = new List<Entry> (count);
|
var dir = new List<Entry> (count);
|
||||||
long next_offset = file.View.ReadUInt32 (0x42);
|
long next_offset = file.View.ReadUInt32 (0x42);
|
||||||
uint current_offset = 0x46;
|
uint current_offset = 0x46;
|
||||||
|
string base_name = Path.GetFileNameWithoutExtension (file.Name);
|
||||||
for (int i = 0; i < count; ++i)
|
for (int i = 0; i < count; ++i)
|
||||||
{
|
{
|
||||||
var entry = new AbmEntry {
|
var entry = new AbmEntry {
|
||||||
Name = i.ToString ("D4") + ".tga",
|
Name = string.Format ("{0}#{1:D4}.tga", base_name, i),
|
||||||
Type = "image",
|
Type = "image",
|
||||||
Offset = next_offset,
|
Offset = next_offset,
|
||||||
Index = i,
|
Index = i,
|
||||||
|
|||||||
Reference in New Issue
Block a user