From e096b030098b3099eb08c03693722b99727aedbe Mon Sep 17 00:00:00 2001 From: ZouJin Date: Sat, 3 Feb 2024 00:48:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=BB=8E=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=AD=E8=AF=BB=E5=8F=96=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 现在版本已经足够新,不会有旧玩家迁移进来了 --- VPet-Simulator.Windows.Interface/Setting.cs | 21 +++++++++++---------- VPet-Simulator.Windows/MainWindow.cs | 2 +- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/VPet-Simulator.Windows.Interface/Setting.cs b/VPet-Simulator.Windows.Interface/Setting.cs index 7a34d0b..4a87c95 100644 --- a/VPet-Simulator.Windows.Interface/Setting.cs +++ b/VPet-Simulator.Windows.Interface/Setting.cs @@ -33,19 +33,20 @@ namespace VPet_Simulator.Windows.Interface allowmove = !this["gameconfig"].GetBool("allowmove"); smartmove = this["gameconfig"].GetBool("smartmove"); enablefunction = !this["gameconfig"].GetBool("nofunction"); - Statistics_OLD = new Statistics(this["statistics"].ToList()); + //Statistics_OLD = new Statistics(this["statistics"].ToList()); autobuy = this["gameconfig"].GetBool("autobuy"); autogift = this["gameconfig"].GetBool("autogift"); } - public override string ToString() - {//留作备份,未来版本删了 - this["statistics"] = new Line("statistics", "", "", Statistics_OLD.ToSubs().ToArray()); - return base.ToString(); - } - /// - /// 统计数据信息(旧) - /// - public Statistics Statistics_OLD; + //public override string ToString() + //{//留作备份,未来版本删了 + // this["statistics"] = new Line("statistics", "", "", Statistics_OLD.ToSubs().ToArray()); + // return base.ToString(); + //} + + ///// + ///// 统计数据信息(旧) + ///// + //public Statistics Statistics_OLD; //public Size WindowsSize //{ diff --git a/VPet-Simulator.Windows/MainWindow.cs b/VPet-Simulator.Windows/MainWindow.cs index 72b97af..cffc625 100644 --- a/VPet-Simulator.Windows/MainWindow.cs +++ b/VPet-Simulator.Windows/MainWindow.cs @@ -712,7 +712,7 @@ namespace VPet_Simulator.Windows else data.Add(new Line(item.Name, item.Info)); } - tmp = new GameSave_v2(lps, Set.Statistics_OLD, olddata: data); + tmp = new GameSave_v2(lps, null, olddata: data); } if (tmp.GameSave == null) return false;