From 77136c6197687e2740a7f1faa46ac5d47bd9a110 Mon Sep 17 00:00:00 2001 From: GanstaKingofSA Date: Tue, 27 Dec 2022 13:39:31 -0600 Subject: [PATCH] push more fixes --- launcher/game/distribute_gui.rpy | 3 ++- launcher/game/front_page.rpy | 5 +++-- launcher/game/options.rpy | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/launcher/game/distribute_gui.rpy b/launcher/game/distribute_gui.rpy index d0b36b0..4843693 100644 --- a/launcher/game/distribute_gui.rpy +++ b/launcher/game/distribute_gui.rpy @@ -278,7 +278,8 @@ label build_distributions: python: f = readVersion() if f is None or f == -1: - interface.error(_("`renpy-version.txt` missing or corrupt."), _("Check if this file exists or attempt to compile guess."),) + if project.current.name != "launcher": + interface.error(_("`renpy-version.txt` missing or corrupt."), _("Check if this file exists or attempt to compile guess."),) elif f < 7: interface.error(_("You are trying to compile a Ren'Py 6 DDLC mod in Ren'Py 7."), _("Please use DDMM 6 in order to comile your Ren'Py 6 mod."),) diff --git a/launcher/game/front_page.rpy b/launcher/game/front_page.rpy index 3600806..74548ab 100644 --- a/launcher/game/front_page.rpy +++ b/launcher/game/front_page.rpy @@ -57,12 +57,13 @@ init python: # Adds backwards compat between 4.1.0+ and older templates def NewEditorOpen(path): - if os.path.exists(os.path.join(persistent.projects_directory, project.current.name, path)): + base = persistent.projects_directory if persistent.projects_directory is not None else config.basedir + if os.path.exists(os.path.join(base, project.current.name, path)): return editor.Edit(path, check=True) else: old_path = path.split("/") old_path.pop(1) - return editor.Edit(str(os.path.join(*b)).replace("\\", "/"), check=True) + return editor.Edit(str(os.path.join(*old_path)).replace("\\", "/"), check=True) screen front_page: frame: diff --git a/launcher/game/options.rpy b/launcher/game/options.rpy index 1af1b97..8efefe6 100644 --- a/launcher/game/options.rpy +++ b/launcher/game/options.rpy @@ -52,7 +52,7 @@ init -1 python hide: # These control the name and version of the game, that are reported # with tracebacks and other debugging logs. config.name = "Doki Doki Mod Maker" - config.version = "1.5.0" + config.version = "1.5.2" ##################### # Themes