summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-19 15:39:16 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-19 15:39:16 -0300
commit89300a9eea1871ef6dbb3c2074c7c6dc81960d36 (patch)
treedf61f1e436fcdd3f2e8d3adc80359b6905238860
parent9ad462931cee68b915d9c40fd3cd20932cf18cee (diff)
downloadrenpy-89300a9eea1871ef6dbb3c2074c7c6dc81960d36.tar.gz
renpy-89300a9eea1871ef6dbb3c2074c7c6dc81960d36.tar.bz2
renpy-89300a9eea1871ef6dbb3c2074c7c6dc81960d36.tar.xz
renpy-89300a9eea1871ef6dbb3c2074c7c6dc81960d36.zip
Use more efficient `elif`
-rw-r--r--game/core.rpy10
1 files changed, 6 insertions, 4 deletions
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)