Skip to content

Commit

Permalink
修复:写入崩溃bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xiayuanOvO committed Dec 30, 2023
1 parent e93a2e1 commit 8810de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/file_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def create_file():
with open(config.CONFIG, "w", encoding="utf-8") as file:
yaml.dump(conf, file, allow_unicode=True)

with open(os.path.join(config.RUN, "start.bat")) as file:
with open(os.path.join(config.RUN, "start.bat"), "w") as file:
file.write("Modernia.exe")

if not os.path.isfile(config.GAME):
Expand Down

0 comments on commit 8810de7

Please sign in to comment.