aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/SaveSystem.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-03 19:44:01 -0500
committerMichael <[email protected]>2017-02-03 19:44:01 -0500
commit318fef283e57221349eb6412db63d63399f4fb86 (patch)
treefb5850eebc36800909516cc09f2ca89631f478fd /ShiftOS_TheReturn/SaveSystem.cs
parent7edc0f10bb79453fdc3bf885cbd21be40f7839b5 (diff)
downloadshiftos_thereturn-318fef283e57221349eb6412db63d63399f4fb86.tar.gz
shiftos_thereturn-318fef283e57221349eb6412db63d63399f4fb86.tar.bz2
shiftos_thereturn-318fef283e57221349eb6412db63d63399f4fb86.zip
Fix crash handler
Diffstat (limited to 'ShiftOS_TheReturn/SaveSystem.cs')
-rw-r--r--ShiftOS_TheReturn/SaveSystem.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/SaveSystem.cs b/ShiftOS_TheReturn/SaveSystem.cs
index 4934221..d2cc521 100644
--- a/ShiftOS_TheReturn/SaveSystem.cs
+++ b/ShiftOS_TheReturn/SaveSystem.cs
@@ -58,6 +58,11 @@ namespace ShiftOS.Engine
/// <param name="useDefaultUI">Whether ShiftOS should initiate it's Windows Forms front-end.</param>
public static void Begin(bool useDefaultUI = true)
{
+ AppDomain.CurrentDomain.UnhandledException += (o, a) =>
+ {
+ CrashHandler.Start((Exception)a.ExceptionObject);
+ };
+
if (!System.IO.File.Exists(Paths.SaveFile))
{
var root = new ShiftOS.Objects.ShiftFS.Directory();