Skip to content

Commit

Permalink
Fixing local mod with version in the name
Browse files Browse the repository at this point in the history
  • Loading branch information
HobbitDur committed Aug 19, 2024
1 parent 9bcac6b commit e46e325
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion create_exe.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
venv/Scripts/pyinstaller.exe -n HobbitInstaller -F --specpath release/build --distpath release --workpath release/build --paths .venv/Lib/site-packages --hidden-import patool main.py;
venv/Scripts/pyinstaller.exe -n HobbitInstaller -F --specpath release/build --distpath release --workpath release/build --hidden-import patool main.py;
mkdir -p release/HobbitInstaller-0.x.x;
cp -R Resources release/HobbitInstaller-0.x.x/;
cp -R ModSetup release/HobbitInstaller-0.x.x/;
Expand Down
4 changes: 0 additions & 4 deletions ffnxmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,9 @@ def change_ost_rf_music_option(self):
self.__change_music_option(self.MUSIC_OST_RF_PARAM_CHANGE.items())

def __change_music_option(self, music_items):
print(music_items)
for i, line in enumerate(self.ffnx_setup):
for param, value in music_items:
if param in line and '=' in line:
print(line)
print(param)
print(value)
line_split = line.split('=')
self.ffnx_setup[i] = line_split[0] + "=" + value + "#Value changed by HobbitInstaller"

2 changes: 1 addition & 1 deletion modmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def install_mod(self, mod_name: str, keep_download_mod=False, special_status={},
zip_ref.extractall(archive)
list_dir = os.listdir(archive)
try:
index_folder = os.listdir(archive).index(dd_file_name.split('.')[0])
index_folder = os.listdir(archive).index(dd_file_name.rsplit('.', 1)[0])

except ValueError:
index_folder = -1
Expand Down

0 comments on commit e46e325

Please sign in to comment.