From b41e6e989b020378a30cd0bea2425c08e2b142d2 Mon Sep 17 00:00:00 2001 From: jkpete <1031139173@qq.com> Date: Wed, 2 Oct 2024 11:20:45 +0800 Subject: [PATCH] fixed update --- Example/SystemExamples/PlayerStorage/Script/ViewStorage.cs | 2 -- Example/UsingTest/Script/EGSaveTest.cs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Example/SystemExamples/PlayerStorage/Script/ViewStorage.cs b/Example/SystemExamples/PlayerStorage/Script/ViewStorage.cs index 34e750e..feede7b 100644 --- a/Example/SystemExamples/PlayerStorage/Script/ViewStorage.cs +++ b/Example/SystemExamples/PlayerStorage/Script/ViewStorage.cs @@ -8,8 +8,6 @@ public partial class ViewStorage : Node,IEGFramework public override void _Ready() { // this.GetModule().SaveToFile("nihao"); - Variant result = this.GetModule().LoadFromFile(); - GD.Print(result); } // Called every frame. 'delta' is the elapsed time since the previous frame. diff --git a/Example/UsingTest/Script/EGSaveTest.cs b/Example/UsingTest/Script/EGSaveTest.cs index 42a6735..9c1666d 100644 --- a/Example/UsingTest/Script/EGSaveTest.cs +++ b/Example/UsingTest/Script/EGSaveTest.cs @@ -30,7 +30,7 @@ namespace EGFramework.Examples.Test{ public void TestLiteDB(){ // 打开数据库 (如果不存在自动创建) - using(var db = new LiteDatabase("SaveData/MyData.db")) + using(var db = new LiteDatabase("SaveData/DefaultLiteDBData.db")) { // 获取一个集合 (如果不存在创建) LiteCollection col = (LiteCollection)db.GetCollection("customers");