diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-06-07 14:38:13 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-06-07 14:38:13 -0300 |
commit | e00aa05a15b9ac5dcff8e7d6f3356126ba23559f (patch) | |
tree | 9830b825b366eb3e2a92f3c900b35a771b44ebd1 | |
parent | a793bdc8d3f4cf42f99ad497863d66dd1150e548 (diff) | |
download | renpy-e00aa05a15b9ac5dcff8e7d6f3356126ba23559f.tar.gz renpy-e00aa05a15b9ac5dcff8e7d6f3356126ba23559f.tar.bz2 renpy-e00aa05a15b9ac5dcff8e7d6f3356126ba23559f.tar.xz renpy-e00aa05a15b9ac5dcff8e7d6f3356126ba23559f.zip |
Do not import Steam module if Steam Login was disabled.
Would make no sense and would not be used anyway
-rw-r--r-- | game/core.rpy | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/game/core.rpy b/game/core.rpy index f24fa53..d28539f 100644 --- a/game/core.rpy +++ b/game/core.rpy @@ -11,7 +11,6 @@ init -3 python: import os.path, os, shutil, subprocess, hashlib, zipfile, pbkdf2 import hmac, struct # non-free imports - import _renpysteam as steam import discord_rpc print("\n[STDBY] Loading Basic functions.......") @@ -142,6 +141,11 @@ init -3 python: persistent.iconify = ifte(renpy.windows, False, True) ############################################################################# + ## Conditional imports + if persistent.steam: + import _renpysteam as steam + + ############################################################################# # ["themanaworld.org", "germantmw.de", "moubootaurlegends.org"] if config.developer: VAULT_HOST = "https://localhost:13370" |