Skip to content

Commit

Permalink
fix: compatibility with shudnal's ConfigurationManager
Browse files Browse the repository at this point in the history
  • Loading branch information
MSchmoecker committed Dec 28, 2024
1 parent 9731045 commit 52ab1c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

# Version 2.22.1
* Fixed compatibility with shudnal's ConfigurationManager

## Version 2.22.0
* Added `SynchronizationMode` attribute to allow mod authors to change how AdminOnly configs are handled. See https://valheim-modding.github.io/Jotunn/tutorials/config.html#admin-only-strictness (thx Searica)
* Fixed mod detection for connection compatibility now use guid instead of name (thx Searica)
Expand Down
6 changes: 6 additions & 0 deletions JotunnLib/Utils/ConfigManagerUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ static ConfigManagerUtils()
displayingWindowInfo = AccessTools.Property(Plugin.GetType(), "DisplayingWindow");
buildSettingListMethodInfo = AccessTools.Method(Plugin.GetType(), "BuildSettingList");
}
else if (Chainloader.PluginInfos.TryGetValue("_shudnal.ConfigurationManager", out configManagerInfo) && configManagerInfo.Instance)
{
Plugin = configManagerInfo.Instance;
displayingWindowInfo = AccessTools.Property(Plugin.GetType(), "DisplayingWindow");
buildSettingListMethodInfo = AccessTools.Method(Plugin.GetType(), "BuildSettingList");
}
}

/// <summary>
Expand Down

0 comments on commit 52ab1c0

Please sign in to comment.