mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-04 03:38:26 +02:00
Custom tracks are now cached in a folder with the mod name instead of all sharing the same directory
This commit is contained in:
parent
e126a6b45b
commit
6b001709c5
2 changed files with 4 additions and 1 deletions
|
@ -103,7 +103,7 @@ class Game:
|
||||||
|
|
||||||
cache_autoadd_directory = cache_directory / "autoadd/"
|
cache_autoadd_directory = cache_directory / "autoadd/"
|
||||||
cache_ogtracks_directory = cache_directory / "original-tracks/"
|
cache_ogtracks_directory = cache_directory / "original-tracks/"
|
||||||
cache_cttracks_directory = cache_directory / f"custom-tracks/"
|
cache_cttracks_directory = cache_directory / f"custom-tracks/{mod_config}/"
|
||||||
|
|
||||||
# get the directory where the game will be extracted
|
# get the directory where the game will be extracted
|
||||||
extracted_game = ExtractedGame(self.get_output_directory(dest, mod_config), self)
|
extracted_game = ExtractedGame(self.get_output_directory(dest, mod_config), self)
|
||||||
|
|
|
@ -96,6 +96,9 @@ class ModConfig:
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return f"<ModConfig name={self.name} version={self.version}>"
|
return f"<ModConfig name={self.name} version={self.version}>"
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return f"{self.name} {self.version}"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls, path: Path | str, config_dict: dict, macros: dict, messages: dict) -> "ModConfig":
|
def from_dict(cls, path: Path | str, config_dict: dict, macros: dict, messages: dict) -> "ModConfig":
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue