forked from Cavemanon/SnootGame
OH NO IT BROKE FURTHER
This commit is contained in:
parent
06df0be4b5
commit
19b3b2ee0c
|
@ -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")
|
||||
|
|
|
@ -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)
|
Loading…
Reference in New Issue