From a793bdc8d3f4cf42f99ad497863d66dd1150e548 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 7 Jun 2021 14:35:36 -0300 Subject: Bump launcher version, and force new M+ download --- game/client.rpy | 11 +++++++---- game/core.rpy | 10 ++++++++++ game/options.rpy | 2 +- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/game/client.rpy b/game/client.rpy index 1d3d680..1f69b49 100644 --- a/game/client.rpy +++ b/game/client.rpy @@ -153,7 +153,7 @@ init 2 python: RPCUpdate("Main Menu", "launcher") return - def md5check_client(): + def md5check_client(silent=False): renpy.notify("Checking md5sum...") try: installdir=get_path(persistent.client) @@ -167,12 +167,15 @@ init 2 python: stdout("Ours: %s" % md5us, True) stdout("Them: %s" % md5up, True) shutil.rmtree(get_path(persistent.client)) - renpy.notify("Files are outdated!") + if not silent: + renpy.notify("Files are outdated!") else: - renpy.notify("All files up to date!") + if not silent: + renpy.notify("All files up to date!") except: traceback.print_exc() - renpy.notify("An error happened.") + if not silent: + renpy.notify("An error happened.") return ############################################ diff --git a/game/core.rpy b/game/core.rpy index 7361a6f..f24fa53 100644 --- a/game/core.rpy +++ b/game/core.rpy @@ -184,6 +184,16 @@ init -3 python: ## End FATAL mode ############################################################# +init 10 python: + ######## + ## Force Update + if persistent.version != config.version: + persistent.version = config.version + if (persistent.client is not None and + persistent.host is not None and + handle_client(launch=True, download=False)): + md5check_client(silent=True) + ######### Done with pre-init label splashscreen: show TMW2 at truecenter with fade diff --git a/game/options.rpy b/game/options.rpy index 7a3675a..0898ee5 100644 --- a/game/options.rpy +++ b/game/options.rpy @@ -23,7 +23,7 @@ define gui.show_name = True ## The version of the game. -define config.version = "21.05.07" +define config.version = "21.06.07" ## The list of providers. -- cgit v1.2.3-70-g09d2