Skip to content

Commit

Permalink
same for r7
Browse files Browse the repository at this point in the history
  • Loading branch information
Bronya-Rand committed Jan 10, 2023
1 parent 93572ad commit b859ac2
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions launcher/game/front_page.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ init python:
def readVersion():
if persistent.projects_directory is not None:
# move renpy-version.txt to project game folder for easy transfer
new_txt_path = os.path.join(persistent.projects_directory, project.current.name, 'game/renpy-version.txt').replace("\\", "/")
old_txt_path = os.path.join(persistent.projects_directory, project.current.name, 'renpy-version.txt').replace("\\", "/")
try:
renpy.file(old_txt_path)
shutil.move(old_txt_path, new_txt_path)
except IOError: pass

if os.path.exists(old_txt_path):
new_txt_path = os.path.join(persistent.projects_directory, project.current.name, 'game/renpy-version.txt').replace("\\", "/")
try:
renpy.file(old_txt_path)
shutil.move(old_txt_path, new_txt_path)
except IOError: pass
else:
new_txt_path = os.path.join(config.basedir, project.current.name, 'game/renpy-version.txt').replace("\\", "/")
else:
new_txt_path = os.path.join(config.basedir, project.current.name, 'game/renpy-version.txt').replace("\\", "/")
try:
Expand Down

0 comments on commit b859ac2

Please sign in to comment.