From 19b3b2ee0c05f8caaa5b82e83229853a9a21edca Mon Sep 17 00:00:00 2001 From: CaveManon Date: Thu, 24 Jun 2021 18:51:08 -0500 Subject: [PATCH] OH NO IT BROKE FURTHER --- game/screens.rpy | 18 ++++++++++++++++-- game/update.rpy | 10 ---------- 2 files changed, 16 insertions(+), 12 deletions(-) delete mode 100644 game/update.rpy diff --git a/game/screens.rpy b/game/screens.rpy index da4989a..84a8cbb 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -1,4 +1,17 @@ -################################################################################ +###Updater Python stuff### +init python: + def UpdateCheck(): + renpy.notify("Updater Ran") + #pendingVersion = updater.UpdateVersion("https://update.snootgame.xyz") + pendingVersion = "penis" + if pendingVersion == None: + persistent.updateresult = "No New Version is Available" + renpy.notify(persistent.updateresult) + else: + renpy.notify(persistent.updateresult + "can be downloaded") + updater.update("https://update.snootgame.xyz/updates.json") + +################################################################################ ## Initialization ################################################################################ @@ -724,7 +737,8 @@ screen updates(): ##style_prefix "check" label _("Auto Update") #textbutton _("Enable Automatic Updates") action ToggleVariable("persistent.autoup", True, False) - textbutton _("Update Now!") action Function(UpdateCheck) + #textbutton _("Update Now! (INVOKE)") action renpy.invoke_in_new_context(UpdateCheck) + textbutton _("Update Now! (FUNCTION)") action Function(UpdateCheck) label _("Update Result:\n") text _("[persistent.updateresult!t]\n") textbutton "Back to Extras" action ShowMenu("extras") diff --git a/game/update.rpy b/game/update.rpy deleted file mode 100644 index df19e4c..0000000 --- a/game/update.rpy +++ /dev/null @@ -1,10 +0,0 @@ -init python: - def UpdateCheck(): - renpy.notify("Updater Ran") - pendingVersion = updater.UpdateVersion("https://update.snootgame.xyz", simulate="Monster-Update-6") - if pendingVersion == None: - persistent.updateresult = "No New Version is Available" - #renpy.notify(persistent.updateresult) - else: - #renpy.notify(persistent.updateresult + "can be downloaded") - updater.update("https://update.snootgame.xyz/updates.json", force=True)