From 403da6bb4e9de96a1aa6c72b42e301fe1634a00b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 24 Oct 2022 14:32:28 -0300 Subject: Trust your own setting more blindly, even if things burn. --- game/soul.rpy | 2 +- game/update.rpy | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'game') diff --git a/game/soul.rpy b/game/soul.rpy index 9066d28..97ba518 100644 --- a/game/soul.rpy +++ b/game/soul.rpy @@ -156,7 +156,7 @@ label thevoid: if mySoul is not None: ## Setup python: - if persistent.steam and steam.initialized: + if persistent.steam: mySoul["name"] = steam.get_persona_name() else: mySoul["name"] = _("Wanderer") diff --git a/game/update.rpy b/game/update.rpy index 7e643d4..de17df7 100644 --- a/game/update.rpy +++ b/game/update.rpy @@ -189,9 +189,13 @@ init python: try: if not persistent.steam: raise Exception("Steam login was disabled!") - stdout("Steam Status: %s" % str(steam.initialized)) - if steam.init() != True: - raise Exception("Steam is not running!") + if steam is None: + raise Exception("Steam Status was disabled!") + #if steam.periodic is None: + # raise Exception("Steam is crazy!") + #assert config.periodic_callbacks.index(steam.periodic) is not None + #if sys.modules["_renpysteam"] is None: + # raise Exception("Steam is not running!") status_update(_("Attempting Steam authentication..."), 81) accId = steam.get_account_id() stdout("Steam login active, user %d" % accId) -- cgit v1.2.3-70-g09d2