enhance | 优化了 dr game 的报错
This commit is contained in:
parent
aa9475b1f4
commit
5ade8b97b8
@ -7,8 +7,8 @@ fonts_folder = "assets/fonts"
|
|||||||
|
|
||||||
[window]
|
[window]
|
||||||
style = "None"
|
style = "None"
|
||||||
width = 1422
|
width = 1569
|
||||||
height = 1093
|
height = 1298
|
||||||
visible = true
|
visible = true
|
||||||
gui_scale = 1
|
gui_scale = 1
|
||||||
caption = "Difficult Rocket v{DR_version}"
|
caption = "Difficult Rocket v{DR_version}"
|
||||||
|
@ -40,15 +40,16 @@ class _DR_mod_runtime(Options): # NOQA
|
|||||||
relationship = (
|
relationship = (
|
||||||
"larger" if self.DR_rust_version > self.DR_rust_version else "smaller"
|
"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"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
|
self.use_DR_rust = self.use_DR_rust and self.DR_rust_available
|
||||||
except Exception:
|
except Exception:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
self.DR_rust_available = False
|
self.DR_rust_available = False
|
||||||
self.use_DR_rust = False
|
self.use_DR_rust = False
|
||||||
|
logger.warn(f"DR_rust load faild\n{traceback.format_exc()}", tag="load_dll")
|
||||||
self.flush_option()
|
self.flush_option()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user