Skip to content

Commit

Permalink
Fixing .toml file update
Browse files Browse the repository at this point in the history
  • Loading branch information
HobbitDur committed Nov 12, 2024
1 parent 9e9a760 commit fd9566a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@ def restore_backup(self):

def install_mod(self, mod: Mod, download_update_func: types.MethodType = None, keep_download_mod=False, download=True, ff8_wrapper=ModWrapper.FFNX,
backup=True, lang_requested=ModLang.EN):
print("install_mod")
print(mod.special_status)
if backup:
print("Backing up the data")
try:
Expand Down Expand Up @@ -337,9 +335,8 @@ def install_mod(self, mod: Mod, download_update_func: types.MethodType = None, k
# remove_test_file()
if not keep_download_mod:
shutil.rmtree(self.FOLDER_DOWNLOAD)

ffnx_param = mod.info["ffnx_param"]
if ffnx_param and ff8_wrapper == "ffnx":
if ffnx_param and ff8_wrapper == ModWrapper.FFNX:
print("Updating FFNx.toml file for mod {}".format(mod.name))
if not os.path.join(self.ff8_path, "FFNx.toml"): # If file doesnt exist, create it
with open(os.path.join(self.ff8_path, "FFNx.toml"), "w") as file:
Expand Down

0 comments on commit fd9566a

Please sign in to comment.