This commit is contained in:
shenjack 2023-07-01 21:57:54 +08:00
parent dcd727e690
commit c572fbd72a
3 changed files with 8 additions and 2 deletions

View File

@ -102,7 +102,7 @@ def write_info_to_cache(cache_stream):
from Difficult_Rocket import DR_status from Difficult_Rocket import DR_status
from Difficult_Rocket.runtime import DR_runtime from Difficult_Rocket.runtime import DR_runtime
cache_stream.write(Run_message) cache_stream.write(Run_message)
cache_stream.write(markdown_line_handler(f'DR Version: {Difficult_Rocket.game_version}', level=1)) cache_stream.write(markdown_line_handler(f'DR Version: {Difficult_Rocket.sdk_version}', level=1))
cache_stream.write(markdown_line_handler(f'DR language: {DR_runtime.language}', level=1)) cache_stream.write(markdown_line_handler(f'DR language: {DR_runtime.language}', level=1))
cache_stream.write(markdown_line_handler(f'Running Dir: {Path(os.curdir).resolve()}', level=1)) cache_stream.write(markdown_line_handler(f'Running Dir: {Path(os.curdir).resolve()}', level=1))
cache_stream.write(f"\n{DR_runtime.as_markdown()}") cache_stream.write(f"\n{DR_runtime.as_markdown()}")

View File

@ -4,6 +4,12 @@
- 最新版本号 - 最新版本号
- DR sdk: 0.8.5.1 - DR sdk: 0.8.5.1
## DR sdk 0.8.5.2
### Fix
- `crash` 引用了已经重命名的 `Difficult_Rocket.game_version` (`Difficult_Rocket.sdk_version`)
## DR sdk 0.8.5.1 ## DR sdk 0.8.5.1
### API ### API

View File

@ -41,7 +41,7 @@ if DR_mod_runtime.use_DR_rust:
SR1Ship_rs) SR1Ship_rs)
logger = logging.getLogger('client.dr_game_sr1_ship') logger = logging.getLogger('client.dr_game_sr1_ship')
sr_tr = Tr(lang_path=Path('./mods/dr_game/lang')) sr_tr = Tr(lang_path=Path(__file__).parent / 'lang')
def get_sr1_part(part_xml: Element) -> Optional[SR1PartData]: def get_sr1_part(part_xml: Element) -> Optional[SR1PartData]: