HOTFIX TO FIX STUPID FUCKING 6 HOUR UPDATE COOLDOWN

This commit is contained in:
tick bumley 2021-07-11 22:00:01 -05:00
parent 9cb70ad986
commit fdfd364d43
2 changed files with 6 additions and 3 deletions

View File

@ -23,7 +23,7 @@ define gui.show_name = True
## The version of the game.
define config.version = "Patchy-patch5"
define config.version = "Patchy-patch5.11"
## Text that is placed on the game's about screen. Place the text between the
## triple-quotes, and leave a blank line between paragraphs.

View File

@ -8,7 +8,9 @@ init python:
persistent.updateWebServer = "http://updates.snootgame.xyz/updates.json"
def UpdateCheck():
pendingVersion = updater.UpdateVersion(persistent.updateWebServer)
# 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:
@ -1262,7 +1264,8 @@ screen extrasnavigation():
imagebutton auto "gui/button/menubuttons/helpbutton_%s.png" action ShowMenu('help')
imagebutton auto "gui/button/menubuttons/aboutbutton_%s.png" action ShowMenu('about')
imagebutton auto "gui/button/menubuttons/updatesbutton_%s.png" action ShowMenu('updates')
imagebutton auto "gui/button/menubuttons/gallerybutton_%s.png" action ShowMenu('gallery')
#imagebutton auto "gui/button/menubuttons/gallerybutton_%s.png" action ShowMenu('gallery')
imagebutton auto "gui/button/menubuttons/gallerybutton_%s.png" action Notify('coming soon ;)')
imagebutton auto "gui/button/menubuttons/returnbutton_%s.png" action ShowMenu('main_menu')