diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-08 22:31:11 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-08 22:31:11 -0300 |
commit | d5898eef746374eb31c9a81dfe9a8b819308a23f (patch) | |
tree | 310ad2d89bc1b6405ff29d36c0cca4d86aa352de /game | |
parent | 99f841c0584c51d00f416efd9f773a67cd2f67ad (diff) | |
download | renpy-d5898eef746374eb31c9a81dfe9a8b819308a23f.tar.gz renpy-d5898eef746374eb31c9a81dfe9a8b819308a23f.tar.bz2 renpy-d5898eef746374eb31c9a81dfe9a8b819308a23f.tar.xz renpy-d5898eef746374eb31c9a81dfe9a8b819308a23f.zip |
The command line interface is core, not discord
Diffstat (limited to 'game')
-rw-r--r-- | game/core.rpy | 21 | ||||
-rw-r--r-- | game/discord.rpy | 22 |
2 files changed, 21 insertions, 22 deletions
diff --git a/game/core.rpy b/game/core.rpy index 2183781..668d650 100644 --- a/game/core.rpy +++ b/game/core.rpy @@ -159,4 +159,25 @@ default has_steam = False default SCR_PROMPT = None default SCR_RESULT = None +## Command Line Interface +init -4 python: + def parse_command(): + parser = renpy.arguments.ArgumentParser() + + # Collect args + parser.add_argument('args', nargs='+', help="Command-line arguments.") + targs = parser.parse_args() + args = targs.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('adv', parse_command) diff --git a/game/discord.rpy b/game/discord.rpy index e579658..e7989e8 100644 --- a/game/discord.rpy +++ b/game/discord.rpy @@ -70,25 +70,3 @@ label quit: $ discord_rpc.shutdown() $ stdout("Thanks for playing the Mana Launcher.") return - -init -4 python: - def parse_command(): - parser = renpy.arguments.ArgumentParser() - - # Collect args - parser.add_argument('args', nargs='+', help="Command-line arguments.") - targs = parser.parse_args() - args = targs.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('adv', parse_command) - |