forked from Cavemanon/SnootGame
OH NO IT BROKE FURTHER
This commit is contained in:
@ -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
|
## Initialization
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
@ -724,7 +737,8 @@ screen updates():
|
|||||||
##style_prefix "check"
|
##style_prefix "check"
|
||||||
label _("Auto Update")
|
label _("Auto Update")
|
||||||
#textbutton _("Enable Automatic Updates") action ToggleVariable("persistent.autoup", True, False)
|
#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")
|
label _("Update Result:\n")
|
||||||
text _("[persistent.updateresult!t]\n")
|
text _("[persistent.updateresult!t]\n")
|
||||||
textbutton "Back to Extras" action ShowMenu("extras")
|
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)
|
|
Reference in New Issue
Block a user