From 89300a9eea1871ef6dbb3c2074c7c6dc81960d36 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 19 May 2021 15:39:16 -0300 Subject: Use more efficient `elif` --- game/core.rpy | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'game/core.rpy') diff --git a/game/core.rpy b/game/core.rpy index 77724d8..3b2f6f5 100644 --- a/game/core.rpy +++ b/game/core.rpy @@ -227,16 +227,16 @@ init -4 python: if (cmd == "steam"): print("Steam Mode Enabled") persistent.steam = True - if (cmd == "dummy"): + elif (cmd == "dummy"): print("Dummy Mode Enabled") USE_DUMMY_DATA = True - if (cmd == "launch"): + elif (cmd == "launch"): print("Auto-launch mode Enabled") AUTOLAUNCH = True - if (cmd == "version"): + elif (cmd == "version"): print("%s %s v%s" % (config.name, "Mirror Lake", config.version)) renpy.quit() - if (cmd == "help"): + elif (cmd == "help"): print("=========================================================") print("Commands:") print("steam - Enables Steam login") @@ -247,6 +247,8 @@ init -4 python: print("") print("Last commands have precedence over earlier ones.") renpy.quit() + else: + print("\033[31;1mWARNING:\033[0m Unrecognized argument: %s" % cmd) return True renpy.arguments.register_command('adv', parse_command) -- cgit v1.2.3-70-g09d2