mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
临时处理不报错
This commit is contained in:
parent
ad2a2a5aef
commit
78b0f6bb93
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user