From 0a95312c12e63fc2ee5b2ed2127ee182a1a56408 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sun, 19 Feb 2023 16:56:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E8=BF=99=E9=83=BD=E8=B7=B3=E4=BA=86?= =?UTF-8?q?=E5=A5=BD=E5=87=A0=E6=AC=A1=E6=AD=A5=E8=BF=9B=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7push=E4=BA=86=20DR=5Frs=200.2.5.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Difficult_Rocket/__init__.py | 5 +- configs/PartList.xml | 2 +- libs/Difficult_Rocket_rs/__init__.py | 4 +- libs/Difficult_Rocket_rs/src/Cargo.lock | 2 +- libs/Difficult_Rocket_rs/src/Cargo.toml | 6 +- libs/Difficult_Rocket_rs/src/src/lib.rs | 3 +- libs/Difficult_Rocket_rs/src/src/sr1_data.rs | 76 +++++++++++++------- 7 files changed, 65 insertions(+), 33 deletions(-) diff --git a/Difficult_Rocket/__init__.py b/Difficult_Rocket/__init__.py index e7c8cb5..d05bb03 100644 --- a/Difficult_Rocket/__init__.py +++ b/Difficult_Rocket/__init__.py @@ -24,7 +24,7 @@ from libs.MCDR.version import Version game_version = Version("0.7.0.3") # 游戏版本 build_version = Version("1.1.0.0") # 编译文件版本(与游戏本体无关) -DR_rust_version = Version("0.2.3.0") # DR 的 Rust 编写部分的版本 +DR_rust_version = Version("0.2.5.0") # DR 的 Rust 编写部分的版本 __version__ = game_version long_version: int = 12 @@ -78,7 +78,8 @@ class _DR_option(Options): if sys.platform != 'darwin': # MacOS 的测试只能在 Macos 上跑 self.pyglet_macosx_dev_test = False try: - from libs.Difficult_Rocket_rs import test_call, get_version_str + from libs.Difficult_Rocket_rs import test_call, get_version_str, part_list_read_test + part_list_read_test("./configs/PartList.xml") test_call(self) print(f'DR_rust available: {get_version_str()}') except ImportError: diff --git a/configs/PartList.xml b/configs/PartList.xml index 9a4df7b..187faab 100644 --- a/configs/PartList.xml +++ b/configs/PartList.xml @@ -1,4 +1,4 @@ - +