Skip to content

Commit f32451f

Browse files
authored
Handle exception thrown from LoadXml as ItemsIgnore and ItemsReplace is not mandatory to extract the map. (jo3bingham#40)
1 parent f34e4b1 commit f32451f

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Apps/Extract/Program.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,15 @@ static void Main(string[] args)
253253

254254
if (_extractMapData)
255255
{
256-
LoadXML("ItemsIgnore.xml");
257-
LoadXML("ItemsReplace.xml");
256+
try
257+
{
258+
LoadXML("ItemsIgnore.xml");
259+
LoadXML("ItemsReplace.xml");
260+
}
261+
catch (Exception ex)
262+
{
263+
Console.WriteLine(ex);
264+
}
258265
}
259266

260267
if (_extractItemData)

0 commit comments

Comments
 (0)