summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-11-23 10:54:51 -0300
committerJesusaves <cpntb1@ymail.com>2021-11-23 10:54:51 -0300
commitaeb4a95746cfd1c1073a6dcd9cee972e5bdfc59c (patch)
tree465a4931f4d37f0ad26b96d364ab5181052772a8
parent8064d3bbae46ad23b456dfcf16b4f0836cc57050 (diff)
downloadrenpy-aeb4a95746cfd1c1073a6dcd9cee972e5bdfc59c.tar.gz
renpy-aeb4a95746cfd1c1073a6dcd9cee972e5bdfc59c.tar.bz2
renpy-aeb4a95746cfd1c1073a6dcd9cee972e5bdfc59c.tar.xz
renpy-aeb4a95746cfd1c1073a6dcd9cee972e5bdfc59c.zip
*Somehow* fix the broken button. Don't ask how.
-rw-r--r--game/core.rpy5
1 files changed, 3 insertions, 2 deletions
diff --git a/game/core.rpy b/game/core.rpy
index 7d6bce4..ebae01b 100644
--- a/game/core.rpy
+++ b/game/core.rpy
@@ -206,6 +206,8 @@ init 10 python:
handle_client(launch=True, download=False)):
md5check_client(silent=True)
+ persistent.last_run = now()
+
######### Done with pre-init
label splashscreen:
show TMW2 at truecenter with fade
@@ -320,10 +322,9 @@ init -4 python:
renpy.arguments.register_command('adv', parse_command)
-
label main_menu:
## Autolaunch - Skip main menu
- if AUTOLAUNCH:
+ if AUTOLAUNCH and persistent.last_run in range(now()-5, now()+1):
$stdout("Auto-launching...")
$AUTOLAUNCH=False
return