mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修改数据溢出报错二次检查
This commit is contained in:
parent
3280b52589
commit
0485e1d8e6
@ -50,8 +50,10 @@ namespace VPet_Simulator.Windows
|
||||
var expt = e.ToString();
|
||||
if (expt.Contains("MainWindow.Close"))
|
||||
return;
|
||||
else if ((expt.ToLower().Contains("value") && expt.ToLower().Contains("nan")) ||
|
||||
expt.Contains("System.OverflowException") || expt.Contains("System.DivideByZeroException"))
|
||||
else if ((!isFatality && MainWindow != null && ((MainWindow)MainWindow).GameSavesData?.GameSave != null &&
|
||||
(((MainWindow)MainWindow).GameSavesData.GameSave.Money > int.MaxValue || ((MainWindow)MainWindow).GameSavesData.GameSave.Exp > int.MaxValue)
|
||||
) && ((expt.ToLower().Contains("value") && expt.ToLower().Contains("nan")) ||
|
||||
expt.Contains("System.OverflowException") || expt.Contains("System.DivideByZeroException")))
|
||||
{
|
||||
MessageBox.Show("由于修改游戏数据导致数据溢出,存档可能会出错\n开发者提醒您请不要使用过于超模的MOD".Translate());
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user