Skip to content

Commit 5c1e08c

Browse files
committed
once again fix this thing
1 parent d79e085 commit 5c1e08c

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

launcher/game/front_page.rpy

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,30 +31,21 @@ init python:
3131
renpy.quit(relaunch=True)
3232

3333
def readVersion():
34-
if persistent.projects_directory is not None:
35-
# move renpy-version.txt to project game folder for easy transfer
36-
old_txt_path = os.path.join(persistent.projects_directory, project.current.name, 'renpy-version.txt').replace("\\", "/")
37-
38-
if os.path.exists(old_txt_path):
39-
new_txt_path = os.path.join(persistent.projects_directory, project.current.name, 'game/renpy-version.txt').replace("\\", "/")
40-
try:
41-
renpy.file(old_txt_path)
42-
shutil.move(old_txt_path, new_txt_path)
43-
except IOError: pass
44-
else:
45-
new_txt_path = os.path.join(config.basedir, project.current.name, 'game/renpy-version.txt').replace("\\", "/")
46-
else:
47-
new_txt_path = os.path.join(config.basedir, project.current.name, 'game/renpy-version.txt').replace("\\", "/")
34+
old_txt_path = os.path.join(project.current.path, 'renpy-version.txt').replace("\\", "/")
35+
new_txt_path = os.path.join(project.current.path, 'game/renpy-version.txt').replace("\\", "/")
36+
37+
if os.path.exists(old_txt_path):
38+
shutil.move(old_txt_path, new_txt_path)
39+
4840
try:
4941
with open(new_txt_path) as f:
50-
file_ver = f.readline().strip()
42+
file_ver = int(f.readline().strip())
5143

52-
int_ver = int(file_ver)
53-
if int_ver >= 6 and int_ver <= 8:
54-
return int_ver
44+
if file_ver >= 6 and file_ver <= 8:
45+
return file_ver
5546
else:
5647
return -1
57-
except IOError:
48+
except IOError:
5849
return None
5950
except ValueError:
6051
return -1

launcher/game/options.rpy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ init -1 python hide:
5252
# These control the name and version of the game, that are reported
5353
# with tracebacks and other debugging logs.
5454
config.name = "Doki Doki Mod Maker"
55-
config.version = "1.5.21"
55+
config.version = "1.5.22"
5656

5757
#####################
5858
# Themes

0 commit comments

Comments
 (0)