summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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