summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-08 22:22:28 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-08 22:22:28 -0300
commit99f841c0584c51d00f416efd9f773a67cd2f67ad (patch)
tree20561185b41ec11fa39c3bccc9ef564222cdd559
parent4430ecb5d11fcd250852a6fe89742fbd0b1278a0 (diff)
downloadrenpy-99f841c0584c51d00f416efd9f773a67cd2f67ad.tar.gz
renpy-99f841c0584c51d00f416efd9f773a67cd2f67ad.tar.bz2
renpy-99f841c0584c51d00f416efd9f773a67cd2f67ad.tar.xz
renpy-99f841c0584c51d00f416efd9f773a67cd2f67ad.zip
Disable Steam automatic login, unless requested by commandline.v2021.05.07+3
-rw-r--r--game/core.rpy2
-rw-r--r--game/discord.rpy17
2 files changed, 12 insertions, 7 deletions
diff --git a/game/core.rpy b/game/core.rpy
index e2adc96..2183781 100644
--- a/game/core.rpy
+++ b/game/core.rpy
@@ -33,7 +33,7 @@ init -3 python:
if (persistent.discord is None):
persistent.discord = True
if (persistent.steam is None):
- persistent.steam = True
+ persistent.steam = False
if (persistent.client is None):
persistent.client = "manaplus"
if (persistent.iconify is None):
diff --git a/game/discord.rpy b/game/discord.rpy
index 6b1f14c..e579658 100644
--- a/game/discord.rpy
+++ b/game/discord.rpy
@@ -75,15 +75,20 @@ init -4 python:
def parse_command():
parser = renpy.arguments.ArgumentParser()
+ # Collect args
parser.add_argument('args', nargs='+', help="Command-line arguments.")
- args = parser.parse_args()
+ targs = parser.parse_args()
+ args = targs.args
- # Do something with args.args
- print("PARSEC")
- print("%s" % str(args))
- print("Args: %s" % str(args.args))
+ if config.developer:
+ print("PARSEC")
+ print("Args: %s" % str(args))
+ ## Command Line Defaults
+ if ("steam" in args):
+ print("Steam Mode Enabled")
+ persistent.steam = True
return True
- renpy.arguments.register_command('parse', parse_command)
+ renpy.arguments.register_command('adv', parse_command)