forked from Cavemanon/SnootGame
Merge remote-tracking branch 'origin/Monster-Update-6' into nio_mustard
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
###Updater Python stuff###
|
||||
###Updater Python stuff###
|
||||
init python:
|
||||
if renpy.variant("pc"): #Don't run this on mobile, not supported
|
||||
if persistent.updateresult is None:
|
||||
@ -39,6 +39,27 @@ init python:
|
||||
# renpy.play("audio/ui/uiOptionOn.wav")
|
||||
# preferences.all_mute = not preferences.all_mute
|
||||
|
||||
=======
|
||||
if renpy.variant("pc"): #Don't run this on mobile, not supported
|
||||
if persistent.updateresult is None:
|
||||
persistent.updateresult = "No new version is available"
|
||||
if persistent.autoup is None:
|
||||
persistent.autoup = False
|
||||
if persistent.updateWebServer is None:
|
||||
persistent.updateWebServer = "http://updates.snootgame.xyz/updates.json"
|
||||
|
||||
def UpdateCheck():
|
||||
# WHY YES I ONLY ALLOW PEOPLE USING MY FRAMEWORK TO CHECK FOR AN UPDATE EVERY SIX FUCKING HOURS HOW DID YOU KNOW
|
||||
# NOPE check_interval=5 (5 SECONDS) FUCK YOU
|
||||
pendingVersion = updater.UpdateVersion(persistent.updateWebServer, check_interval=5)
|
||||
if pendingVersion == None or pendingVersion == config.version or "TEST" in pendingVersion:
|
||||
persistent.updateresult = "No new version is available"
|
||||
else:
|
||||
persistent.updateresult = pendingVersion
|
||||
|
||||
def ToggleAutoUpdate():
|
||||
persistent.autoup = not persistent.autoup
|
||||
>>>>>>> origin/Monster-Update-6
|
||||
|
||||
################################################################################
|
||||
## Initialization
|
||||
@ -707,6 +728,7 @@ screen updates():
|
||||
|
||||
label _("Update Checker:")
|
||||
label _("{color=#FFFFFF}{size=32}[persistent.updateresult!t]{/size}{/color}")
|
||||
|
||||
textbutton _("{size=36}Check for Update\n{/size}") activate_sound "audio/ui/uiClick.wav" action [Notify("Checking for update..."), Function(UpdateCheck)]
|
||||
|
||||
label _("Updater:")
|
||||
|
Reference in New Issue
Block a user