Update texture.py

This commit is contained in:
Yonokid
2025-12-27 18:46:08 -05:00
parent a21ea9b7bc
commit 4ec426c34e

View File

@@ -72,6 +72,13 @@ class TextureWrapper:
self.animations: dict[int, BaseAnimation] = dict() self.animations: dict[int, BaseAnimation] = dict()
self.skin_config: dict[str, SkinInfo] = dict() self.skin_config: dict[str, SkinInfo] = dict()
self.graphics_path = Path(f'Skins/{get_config()['paths']['skin']}/Graphics') self.graphics_path = Path(f'Skins/{get_config()['paths']['skin']}/Graphics')
if not self.graphics_path.exists():
logger.error("No skin has been configured")
self.screen_width = 1280
self.screen_height = 720
self.screen_scale = 1.0
self.skin_config = dict()
return
self.parent_graphics_path = Path(f'Skins/{get_config()['paths']['skin']}/Graphics') self.parent_graphics_path = Path(f'Skins/{get_config()['paths']['skin']}/Graphics')
if not (self.graphics_path / "skin_config.json").exists(): if not (self.graphics_path / "skin_config.json").exists():
raise Exception("skin is missing a skin_config.json") raise Exception("skin is missing a skin_config.json")