From e5c9e5ee1a5d39e5b67dd0c571cce2030d75ef80 Mon Sep 17 00:00:00 2001 From: nutbuster Date: Wed, 9 Nov 2022 16:42:45 +1100 Subject: [PATCH] Kill local cache thumbnails --- game/src/splashscreen.rpy | 52 +-------------------------------------- 1 file changed, 1 insertion(+), 51 deletions(-) diff --git a/game/src/splashscreen.rpy b/game/src/splashscreen.rpy index f8628b7..b2238ed 100644 --- a/game/src/splashscreen.rpy +++ b/game/src/splashscreen.rpy @@ -3,57 +3,7 @@ label splashscreen: $ persistent.splashtype = random.randint(0,2000 - 1) $ renpy.movie_cutscene("images/intros/CaveManonProductions.webm") - python: - #import pygame - - CACHE_PATH = config.basedir.replace("\\","/") + "/game/cache/" - - if renpy.android: - CACHE_PATH = os.environ['ANDROID_PUBLIC'] + "/cache/" - - # (src_image: FactorScale; name: string, ext: string) FactorScale refers to an image scaled using im.FactorScale() - def save_thumb(src_image, name, ext): - final = CACHE_PATH+"thmb_"+name+'.'+ext - - if (os.path.exists(final)): - pass - else: - data = src_image.load() #Returns a pygame surface - #pygame.image.save(data, final) #Saves the image to file - #print('O', final) - - #save_thumb(NOT_UNLOCKED_COVER,"default","jpg") - - path_testing = [] - for x in (gallery_dic.items()): - key = x[0] - value = x[1] - - #slow, roundabout but it works - if key in path_testing: - pass - else: - for c in CG_PATHS: - #print(c, os.path.basename(c['path'])) - if (c['name'] == key): - final_dir = os.path.join(CACHE_PATH, "thmb_"+os.path.normpath(c['path'])) - if (os.path.exists(final_dir)): - pass - else: - os.makedirs(final_dir) - - path_testing.append(key) - - for y in value: - #print(y['cg']) - if type(y['cg']) is Movie: - pass - else: - save_thumb(y['cg'], y['fn'], y['ext']) - - pass - - if persistent.autoup == 10000: + if persistent.autoup == 10000 python: UpdateCheck() if persistent.updateresult != "No new version is available":