Closed krzychu124 closed 2 years ago
how do you make sure the options are not applied in game when DLC is absent? code path is not even reached?
how do you make sure the options are not applied in game when DLC is absent? code path is not even reached?
What do you mean by that? I think you have missed very important line of code (line 17) which means that missing DLC will make the option disabled.
If you ask what about if user have DLC and disabled it? Does it really a problem? Most of the time, especially with those two DLC savegame won't be loadable without those DLCs and.. user already had to have the DLC to enable the option in the first place, not to mention those settings are ignored when there is no DLC since the code is triggered by DLC content (e.g. evacuation buses may ignore arrows - you needs to have access to Evacuation bus and running disaster which requires DLC).
Just because UI is disabled doesn't mean the option won't return a value.
Resolves #1632
Instead of hiding options if user doesn't have DLC show as read-only. Affects only 4 checkboxes.
Build zip