summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-06-07 14:35:36 -0300
committerJesusaves <cpntb1@ymail.com>2021-06-07 14:35:36 -0300
commita793bdc8d3f4cf42f99ad497863d66dd1150e548 (patch)
tree931882998bdaa0c12841ce5928b495aeb47234da
parent19484f5a4e84f402f96d15233a09ec5e73444ee8 (diff)
downloadrenpy-a793bdc8d3f4cf42f99ad497863d66dd1150e548.tar.gz
renpy-a793bdc8d3f4cf42f99ad497863d66dd1150e548.tar.bz2
renpy-a793bdc8d3f4cf42f99ad497863d66dd1150e548.tar.xz
renpy-a793bdc8d3f4cf42f99ad497863d66dd1150e548.zip
Bump launcher version, and force new M+ download
-rw-r--r--game/client.rpy11
-rw-r--r--game/core.rpy10
-rw-r--r--game/options.rpy2
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.