From e00aa05a15b9ac5dcff8e7d6f3356126ba23559f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 7 Jun 2021 14:38:13 -0300 Subject: Do not import Steam module if Steam Login was disabled. Would make no sense and would not be used anyway --- game/core.rpy | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.......") @@ -141,6 +140,11 @@ init -3 python: if (persistent.iconify is None): 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: -- cgit v1.2.3-70-g09d2