From 5ade8b97b878ab6446121c916051c5cf3e5c26c5 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 23 Dec 2023 01:03:36 +0800 Subject: [PATCH] =?UTF-8?q?enhance=20|=20=E4=BC=98=E5=8C=96=E4=BA=86=20dr?= =?UTF-8?q?=20game=20=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/main.toml | 4 ++-- mods/dr_game/__init__.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config/main.toml b/config/main.toml index f6e465d..7af5df9 100644 --- a/config/main.toml +++ b/config/main.toml @@ -7,8 +7,8 @@ fonts_folder = "assets/fonts" [window] style = "None" -width = 1422 -height = 1093 +width = 1569 +height = 1298 visible = true gui_scale = 1 caption = "Difficult Rocket v{DR_version}" diff --git a/mods/dr_game/__init__.py b/mods/dr_game/__init__.py index 79866c7..ba4eb02 100644 --- a/mods/dr_game/__init__.py +++ b/mods/dr_game/__init__.py @@ -40,15 +40,16 @@ class _DR_mod_runtime(Options): # NOQA relationship = ( "larger" if self.DR_rust_version > self.DR_rust_version else "smaller" ) - warnings.warn( + logger.warn( f"DR_rust builtin version is {self.DR_rust_version} but true version is {get_version_str()}.\n" - f"Builtin version {relationship} than true version" + f"Builtin version {relationship} than true version", tag="load_dll" ) self.use_DR_rust = self.use_DR_rust and self.DR_rust_available except Exception: traceback.print_exc() self.DR_rust_available = False self.use_DR_rust = False + logger.warn(f"DR_rust load faild\n{traceback.format_exc()}", tag="load_dll") self.flush_option()