enhance | 优化了 dr game 的报错

This commit is contained in:
shenjack 2023-12-23 01:03:36 +08:00
parent aa9475b1f4
commit 5ade8b97b8
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 5 additions and 4 deletions

View File

@ -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}"

View File

@ -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()