From e278a90b4350ffb3cbc3f0148da4920bce8fce4e Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Tue, 10 Sep 2024 16:21:25 +0100 Subject: [PATCH] Bug fix --- game/scripts/doll/common.rpy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/scripts/doll/common.rpy b/game/scripts/doll/common.rpy index bf5f49a6..19ca929d 100644 --- a/game/scripts/doll/common.rpy +++ b/game/scripts/doll/common.rpy @@ -78,7 +78,7 @@ init -1 python: def create_disk_cache(self, d, hash, size=None, type="img"): width, height = size or self.sizes - filepath = os.path.join("cache", type, f"{hash}.png") + filepath = os.path.join("cache", type, f"{hash}.png").replace("\\", "/") # Windows bleh rendpath = os.path.join("game", filepath) syspath = os.path.join(config.gamedir, "cache", type) @@ -96,7 +96,7 @@ init -1 python: return d def get_disk_cache(self, hash, type="img"): - filepath = os.path.join("cache", type, f"{hash}.png") + filepath = os.path.join("cache", type, f"{hash}.png").replace("\\", "/") # Windows bleh return Image(filepath) if renpy.loadable(filepath) else None