From 51ba06d1391f6b8cc93f7badf5cc8e511298e4c8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 2 Nov 2022 19:44:38 -0300 Subject: Fix a couple minor bugs --- game/client.rpy | 5 ++++- game/core.rpy | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/game/client.rpy b/game/client.rpy index 30665ed..38d8e6e 100644 --- a/game/client.rpy +++ b/game/client.rpy @@ -200,7 +200,10 @@ init 2 python: ## Ours try: - md5us=md5sum(fname) #(installdir+"/%s" % fname) + if renpy.windows: + md5us=md5sum(fname) + else: + md5us=md5sum(installdir+"/%s" % fname) if md5up != md5us: stdout("MD5 Mismatch: hashes differ", True) stdout("Ours: %s" % md5us, True) diff --git a/game/core.rpy b/game/core.rpy index 5f5c292..8dbd79e 100644 --- a/game/core.rpy +++ b/game/core.rpy @@ -29,12 +29,12 @@ init -3 python: # This is Python 3.x execute=subprocess.run LEGACY = False - print("Python 3.x detected! Version is %d. Compatibility mode enabled!" % PYTHON_VERSION) + print("Python 3.x detected! Version is %d." % PYTHON_VERSION) else: # This is Python 2.7 execute=subprocess.call LEGACY = True - print("Python 2.7 detected! Setting legacy mode... (ver: %d)" % PYTHON_VERSION) + print("Python 2.7 detected! Compatibility mode enabled! (ver: %d)" % PYTHON_VERSION) ############################################################################# # Functions -- cgit v1.2.3-70-g09d2