From 9de08f81b1b858e96ec2e4d27c83d160cbad84b3 Mon Sep 17 00:00:00 2001 From: ZaneYork Date: Sat, 14 Mar 2020 13:37:18 +0800 Subject: [PATCH] Bug fix,for Immersive Farm 2 Remastered --- src/SMAPI/SMainActivity.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SMAPI/SMainActivity.cs b/src/SMAPI/SMainActivity.cs index c5ab9589..1b9b6dda 100644 --- a/src/SMAPI/SMainActivity.cs +++ b/src/SMAPI/SMainActivity.cs @@ -187,6 +187,12 @@ namespace StardewModdingAPI this.Finish(); }); } + catch (Exception ex) + { + SAlertDialogUtil.AlertMessage($"SMAPI failed to initialize: {ex}"); + Microsoft.AppCenter.Crashes.Crashes.TrackError(ex); + this.Finish(); + } } public new void CheckAppPermissions()