BepInEx / BepInEx.ConfigurationManager

Plugin configuration manager for BepInEx
https://www.patreon.com/ManlyMarco
GNU Lesser General Public License v3.0
231 stars 53 forks source link

Fix compatibility with BepInEx 5.4.10 #28

Closed bwoebi closed 3 years ago

bwoebi commented 3 years ago

BepInEx 5.4.10 hides its plugins now via HideAndDontSave (see commit https://github.com/BepInEx/BepInEx/commit/0a25349ac442f2ff928f56545258c9cf7fba5d76), which causes any regularly loaded plugins to not be found with FindObjectsOfType() anymore.

Thus we now load the regularly loaded plugins from the BepInEx API and additionally include the dynamic plugins.

This is quite stupid currently as the ConfigurationManager finds exactly zero plugins right now (minus potential dynamically loaded ones). A quick merge and release would be appreciated.

Also note the .Distinct() in order to avoid it breaking with older BepInEx versions.

ghorsington commented 3 years ago

Fair point. Looks good to me, thanks for the PR!