From c5b5e979389ddcf96bed9d102cc2b700f5d10925 Mon Sep 17 00:00:00 2001 From: crskycode Date: Tue, 13 Apr 2021 04:46:32 +0800 Subject: [PATCH] Fix root dir name --- ArcFormats/Malie/ArcLIB.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArcFormats/Malie/ArcLIB.cs b/ArcFormats/Malie/ArcLIB.cs index f1ba05c2..ccaf0fca 100644 --- a/ArcFormats/Malie/ArcLIB.cs +++ b/ArcFormats/Malie/ArcLIB.cs @@ -287,6 +287,8 @@ namespace GameRes.Formats.Malie int offset = LittleEndian.ToInt32 (m_index, current_offset+0x18); uint size = LittleEndian.ToUInt32 (m_index, current_offset+0x1c); current_offset += 0x20; + if (name.StartsWith("/")) + name = name.Substring(1); name = Path.Combine (root, name); if (0 == (flags & 0x30000)) {