mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
Update texture.py
This commit is contained in:
@@ -154,7 +154,7 @@ class TextureWrapper:
|
|||||||
tex_mapping_data: dict[str, dict] = json.loads(json_file.read().decode('utf-8'))
|
tex_mapping_data: dict[str, dict] = json.loads(json_file.read().decode('utf-8'))
|
||||||
self.textures[zip.stem] = dict()
|
self.textures[zip.stem] = dict()
|
||||||
|
|
||||||
encoding = 'utf-8'
|
encoding = sys.getfilesystemencoding()
|
||||||
for tex_name in tex_mapping_data:
|
for tex_name in tex_mapping_data:
|
||||||
if f"{tex_name}/" in zip_ref.namelist():
|
if f"{tex_name}/" in zip_ref.namelist():
|
||||||
tex_mapping = tex_mapping_data[tex_name]
|
tex_mapping = tex_mapping_data[tex_name]
|
||||||
|
|||||||
Reference in New Issue
Block a user