From bedba61ff55b1ffb4b4d468a1c4e9f93cdfd4dcb Mon Sep 17 00:00:00 2001 From: morkt Date: Sat, 26 Jul 2014 23:12:05 +0400 Subject: [PATCH] added CanCreate property. --- ArcFormats/ArcXFL.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArcFormats/ArcXFL.cs b/ArcFormats/ArcXFL.cs index 8a6b3031..4757d7b4 100644 --- a/ArcFormats/ArcXFL.cs +++ b/ArcFormats/ArcXFL.cs @@ -21,6 +21,7 @@ namespace GameRes.Formats public override string Description { get { return Strings.arcStrings.XFLDescription; } } public override uint Signature { get { return 0x0001424c; } } public override bool IsHierarchic { get { return false; } } + public override bool CanCreate { get { return true; } } public override ArcFile TryOpen (ArcView file) { @@ -71,9 +72,9 @@ namespace GameRes.Formats // first, write names only foreach (var entry in list) { + string name = Path.GetFileName (entry.Name); try { - string name = Path.GetFileName (entry.Name); int size = encoding.GetBytes (name, 0, name.Length, name_buf, 0); if (size < name_buf.Length) name_buf[size] = 0;