From 9a94db99078e9813f985c60cf5352d20d5fc1232 Mon Sep 17 00:00:00 2001 From: jayotterbein Date: Wed, 29 Jan 2014 09:19:34 -0600 Subject: [PATCH 1/2] changed array size constants to public --- Constants.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Constants.cs b/Constants.cs index 7e6e1a6..c92f88b 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 From 03db10d135a71c19fb080525289f0610f474d672 Mon Sep 17 00:00:00 2001 From: jayotterbein Date: Wed, 5 Feb 2014 09:20:55 -0600 Subject: [PATCH 2/2] no longer throwing exception when resource file not found --- ResourceParser.cs | 3 +++ 1 file changed, 3 insertions(+) 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))