Bug fix
This commit is contained in:
parent
2a0f6a1966
commit
e278a90b43
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user