Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions ResourceParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ public static class ResourceParser
/// <returns>Yields next element</returns>
private static IEnumerable<XElement> 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))
Expand Down