diff --git a/Constants.cs b/Constants.cs index 0b04edc..68ebc0c 100644 --- a/Constants.cs +++ b/Constants.cs @@ -96,9 +96,9 @@ public static class Constants #region Array size internal const uint CHATLOG_ARRAY_SIZE = 1000; - internal const uint ENTITY_ARRAY_SIZE = 100; - internal const uint PARTY_MEMBER_ARRAY_SIZE = 8; - internal const uint GATHERING_ARRAY_SIZE = 40; + public const uint ENTITY_ARRAY_SIZE = 100; + public const uint PARTY_MEMBER_ARRAY_SIZE = 8; + public const uint GATHERING_ARRAY_SIZE = 40; #endregion diff --git a/ResourceParser.cs b/ResourceParser.cs index 500d031..1bafbaa 100644 --- a/ResourceParser.cs +++ b/ResourceParser.cs @@ -20,6 +20,9 @@ public static class ResourceParser /// Yields next element private static IEnumerable StreamElements(string fileName, string elementName) { + if (!File.Exists(fileName)) + yield break; + using (var sr = new StreamReader(fileName, Encoding.GetEncoding("UTF-8"))) { using (var rdr = XmlTextReader.Create(sr))