diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-08 16:32:23 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-08 16:32:23 -0300 |
commit | f9be76eb6391b4492e3e2987b6f24ec2343a8309 (patch) | |
tree | 652f39af21b32de64ccafc6293399dca87a4411a /game | |
parent | 399a6b72e81a91b8a377917f91fa92d59025507d (diff) | |
download | renpy-f9be76eb6391b4492e3e2987b6f24ec2343a8309.tar.gz renpy-f9be76eb6391b4492e3e2987b6f24ec2343a8309.tar.bz2 renpy-f9be76eb6391b4492e3e2987b6f24ec2343a8309.tar.xz renpy-f9be76eb6391b4492e3e2987b6f24ec2343a8309.zip |
Allow users to disable Steam Login.
Currently breaks the launcher, but it is to allow you greater flexibility.
Diffstat (limited to 'game')
-rw-r--r-- | game/core.rpy | 2 | ||||
-rw-r--r-- | game/screens.rpy | 9 | ||||
-rw-r--r-- | game/update.rpy | 2 |
3 files changed, 12 insertions, 1 deletions
diff --git a/game/core.rpy b/game/core.rpy index 18d08e9..0f3feca 100644 --- a/game/core.rpy +++ b/game/core.rpy @@ -32,6 +32,8 @@ init -3 python: ## Configuration and Defaults if (persistent.discord is None): persistent.discord = True + if (persistent.steam is None): + persistent.steam = True if (persistent.client is None): persistent.client = "manaplus" if (persistent.iconify is None): diff --git a/game/screens.rpy b/game/screens.rpy index 7025a88..abd254a 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -662,7 +662,7 @@ screen preferences(): vbox: style_prefix "radio" - label _("Discord Integration") + label _("Discord") textbutton ifte(persistent.discord, _("Enabled"), _("Disabled")): @@ -677,6 +677,13 @@ screen preferences(): vbox: style_prefix "check" + label _("Steam Login") + textbutton ifte(persistent.steam, + _("Enabled"), + _("Disabled")): + action ToggleVariable("persistent.steam") + null height 10 + label _("Skip") textbutton _("Unseen Text") action Preference("skip", "toggle") textbutton _("After Choices") action Preference("after choices", "toggle") diff --git a/game/update.rpy b/game/update.rpy index edef6d1..1a3adf5 100644 --- a/game/update.rpy +++ b/game/update.rpy @@ -159,6 +159,8 @@ init python: # This block is 1~20% status_update("Verifying credentials...", 80) try: + if not persistent.steam: + raise Exception("Steam login was disabled!") if not steam.init(): raise Exception("Steam is not running!") status_update("Attempting Steam authentication...", 81) |