Skip to content

Commit 3b944b0

Browse files
committed
Work around sfall creating empty mods_order.txt, ref #347
1 parent ed8dd99 commit 3b944b0

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

extra/inno/inno.iss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ UsePreviousAppDir=no
2727
AlwaysShowDirOnReadyPage=yes
2828

2929
[Files]
30-
Source: "release\*.*"; Excludes: "\mods\mods_order.txt"; DestDir: "{app}"; Components: core; Flags: ignoreversion recursesubdirs overwritereadonly
31-
Source: "release\mods\mods_order.txt"; DestDir: "{#mods_dir}"; Components: core; Flags: onlyifdoesntexist
30+
Source: "release\*.*"; DestDir: "{app}"; Components: core; Flags: ignoreversion recursesubdirs overwritereadonly
3231
#include "files_translations.iss"
3332
Source: "optional\rpu_alternative_explosions.dat"; DestDir: "{#mods_dir}"; Components: alternative_explosions; Flags: ignoreversion overwritereadonly
3433
Source: "optional\rpu_enhanced_worldmap.dat"; DestDir: "{#mods_dir}"; Components: worldmap; Flags: ignoreversion overwritereadonly

release/rpu-install.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ if exist f2_res.dat (
1010
move f2_res.dat %bdir%\
1111
)
1212

13+
:: Backup old mods_order.txt if exists
14+
if exist mods\mods_order.txt (
15+
move mods\mods_order.txt %bdir%\
16+
)
17+
move /y mods_order.txt mods\mods_order.txt
18+
1319
:: I don't know how to iterate over files in batch properly, so just moving back and forth
1420
move /y data %bdir%\
1521
mkdir data\sound

release/rpu-install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ if [[ -d appearance ]]; then
6464
done
6565
fi
6666

67+
# Backup old mods_order.txt if exists
68+
if [ -f mods/mods_order.txt ]; then
69+
mv mods/mods_order.txt $bdir/
70+
fi
71+
mv -f mods_order.txt mods/mods_order.txt
72+
6773
# sound path fix
6874
rm -f camlrt.dll initool.exe
6975
cp fallout2.cfg "$bdir"/

0 commit comments

Comments
 (0)