Commit 3a48f5e
committed
Fix ESL activation with 254 mods RRR
Was trying to activate the ESL's masters, even when they were already
enabled. This normally fails two lines down, at the 'fileName not in
self._active_wip' check, but not if you have 254 masters, where it
causes a 'too many masters' warning first. We now check if the masters
haven't already been enabled before trying to activate them. May make
mod activation a bit faster as well - also went ahead and sped up the
active_wip lookup by making a set for it, since lookup occurs for each
master and can potentially take O(m*n) time, where m = #masters and
n = #LO mods. Now takes at most O(m) time.
This could potentially have affected load orders for the older games as
well, but I haven't tested it yet.
Under # 309 <--- RRR1 parent 4b9f808 commit 3a48f5e
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2312 | 2312 | | |
2313 | 2313 | | |
2314 | 2314 | | |
| 2315 | + | |
| 2316 | + | |
2315 | 2317 | | |
2316 | | - | |
2317 | | - | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
2318 | 2322 | | |
2319 | | - | |
| 2323 | + | |
2320 | 2324 | | |
2321 | 2325 | | |
2322 | 2326 | | |
| |||
0 commit comments