From 15dd1c9aa4d8aa2788ab71c6c492bdb77a4f063e Mon Sep 17 00:00:00 2001
From: ninemine <1371605831@qq.com>
Date: Fri, 17 Oct 2025 16:43:15 +0800
Subject: [PATCH] =?UTF-8?q?EP=20RScript/=E4=BC=98=E5=8C=96=E8=B7=B3?=
=?UTF-8?q?=E8=BD=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Convention-CSharp.csproj | 1 +
Convention/[RScript] | 2 +-
[Test]/Program.cs | 10 ++++++----
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/Convention-CSharp.csproj b/Convention-CSharp.csproj
index 1bb1198..2542c05 100644
--- a/Convention-CSharp.csproj
+++ b/Convention-CSharp.csproj
@@ -5,6 +5,7 @@
Exe
net8.0
Convention
+ true
diff --git a/Convention/[RScript] b/Convention/[RScript]
index dde9e6b..7b48066 160000
--- a/Convention/[RScript]
+++ b/Convention/[RScript]
@@ -1 +1 @@
-Subproject commit dde9e6b82da6479ba928c5ecf0ac3c6cacf8ee71
+Subproject commit 7b48066aafbbb9479715961873fe2938b225daec
diff --git a/[Test]/Program.cs b/[Test]/Program.cs
index 164b851..a051f0a 100644
--- a/[Test]/Program.cs
+++ b/[Test]/Program.cs
@@ -25,7 +25,7 @@ public class Program
typeof(Test)
};
- /*
+
var result = engine.Compile(@"
int i= 2;
int count = 0;
@@ -49,8 +49,10 @@ namespace(func1)
label(end);
", import);
- */
- //EasySave.Save("data", result, "F:\\test.json");
- var result = engine.Run(EasySave.Load("data", "F:\\test.json"), import);
+ var data = RScriptSerializer.SerializeClass(result);
+ var file = new ToolFile("F:\\test.dat");
+ file.SaveAsBinary(data);
+ data = file.LoadAsBinary();
+ engine.Run(RScriptSerializer.DeserializeClass(data), import);
}
}
\ No newline at end of file