临时处理不报错

This commit is contained in:
ZouJin 2024-04-07 15:04:49 +08:00
parent ad2a2a5aef
commit 78b0f6bb93

View File

@ -48,7 +48,7 @@ namespace VPet_Simulator.Windows
private void UnhandledException(Exception e, bool isFatality) private void UnhandledException(Exception e, bool isFatality)
{ {
var expt = e.ToString(); var expt = e.ToString();
if (expt.Contains("MainWindow.Close")) if (expt.Contains("MainWindow.Close") && expt.Contains("System.ArgumentException"))//临时处理不报错
return; return;
else if ((!isFatality && MainWindow != null && ((MainWindow)MainWindow).GameSavesData?.GameSave != null && else if ((!isFatality && MainWindow != null && ((MainWindow)MainWindow).GameSavesData?.GameSave != null &&
(((MainWindow)MainWindow).GameSavesData.GameSave.Money > int.MaxValue || ((MainWindow)MainWindow).GameSavesData.GameSave.Exp > int.MaxValue) (((MainWindow)MainWindow).GameSavesData.GameSave.Money > int.MaxValue || ((MainWindow)MainWindow).GameSavesData.GameSave.Exp > int.MaxValue)