Commit 309d4c2
Disable 'Clean Data Directory' per game
Prerequisite for Enderal, otherwise it crashes on launch after using WB
with it.
Background: Enderal ships an empty folder called 'JCData', which
JContainers requires in order to function - if it's removed, JContainers
will crash the entire game. Normally, this folder contains some dummy
files and example Lua scripts, which is why it never gets removed for
standard JContainers installations.
But Enderal, as already mentioned, ships it empty - JContainers is
fine with this, but WB's 'Clean Data Directory' feature, which is
enabled by default, will remove the folder, causing Enderal to crash.
Things this commit does:
1. Rename it to 'Remove Empty Directories', because that's what it
does.
2. Add a boolean that can force-disable it for a game and will also
hide the toggle for it.
TODO - flip the default to False and add a warning when it's flipped?
Or even remove it altogether? This could cause issues with all kinds of
mods that purposefully ship empty directories and expect them to exist.1 parent 38687ff commit 309d4c2
4 files changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
| 428 | + | |
429 | 429 | | |
430 | 430 | | |
| 431 | + | |
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
| 267 | + | |
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1949 | 1949 | | |
1950 | 1950 | | |
1951 | 1951 | | |
1952 | | - | |
| 1952 | + | |
| 1953 | + | |
1953 | 1954 | | |
1954 | 1955 | | |
1955 | 1956 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
230 | 234 | | |
231 | 235 | | |
232 | 236 | | |
| |||
0 commit comments