show config crashes so we can debug them

This commit is contained in:
beirich 2011-07-06 02:16:44 +00:00
parent 29510ddd58
commit 0b09825218
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,6 @@
using System.IO;
using System;
using System.IO;
using System.Windows.Forms;
using Newtonsoft.Json;
namespace BizHawk.MultiClient
@ -20,7 +22,7 @@ namespace BizHawk.MultiClient
config = (T)s.Deserialize(r, typeof(T));
}
}
catch { }
catch (Exception e) { MessageBox.Show(e.ToString()); }
if (config == null) return new T();
else return config;
}