From 0f5cd6a26af4d046139596f0727377eb475981be Mon Sep 17 00:00:00 2001 From: ZouJin Date: Sun, 7 Apr 2024 16:00:31 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E4=B8=B4=E6=97=B6=E5=A4=84=E7=90=86?= =?UTF-8?q?=E4=B8=8D=E6=8A=A5=E9=94=99"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 78b0f6bb9357fbb17c5606892aa2ff9c25e8e413. --- VPet-Simulator.Windows/App.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VPet-Simulator.Windows/App.xaml.cs b/VPet-Simulator.Windows/App.xaml.cs index 342499d..e081f6d 100644 --- a/VPet-Simulator.Windows/App.xaml.cs +++ b/VPet-Simulator.Windows/App.xaml.cs @@ -48,7 +48,7 @@ namespace VPet_Simulator.Windows private void UnhandledException(Exception e, bool isFatality) { var expt = e.ToString(); - if (expt.Contains("MainWindow.Close") && expt.Contains("System.ArgumentException"))//临时处理不报错 + if (expt.Contains("MainWindow.Close")) return; else if ((!isFatality && MainWindow != null && ((MainWindow)MainWindow).GameSavesData?.GameSave != null && (((MainWindow)MainWindow).GameSavesData.GameSave.Money > int.MaxValue || ((MainWindow)MainWindow).GameSavesData.GameSave.Exp > int.MaxValue)