enhance | 优化了 dr game 的报错
This commit is contained in:
parent
aa9475b1f4
commit
5ade8b97b8
@ -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}"
|
||||
|
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user