Revert "临时处理不报错"

This reverts commit 78b0f6bb93.
This commit is contained in:
ZouJin 2024-04-07 16:00:31 +08:00
parent 78b0f6bb93
commit 0f5cd6a26a

View File

@ -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)