Add configurable reflection signature blacklist, extends to MCS as well

This commit is contained in:
Sinai committed 2021-05-13 23:02:46 +10:00
1 parent 843d7ed451
commit ccd08c3a63
6 files changed
+241 -75

No files matched your search

+2 -2
View File
@@ -18,7 +18,7 @@ namespace UnityExplorer.Loader.ML
public override void Init()
{
prefCategory = MelonPreferences.CreateCategory(CTG_NAME, $"{CTG_NAME} Settings");
prefCategory = MelonPreferences.CreateCategory(CTG_NAME, $"{CTG_NAME} Settings", false, true);
}
public override void LoadConfig()
@@ -36,7 +36,7 @@ namespace UnityExplorer.Loader.ML
public override void RegisterConfigElement<T>(ConfigElement<T> config)
{
var entry = prefCategory.CreateEntry(config.Name, config.Value, null, config.IsInternal) as MelonPreferences_Entry<T>;
var entry = prefCategory.CreateEntry(config.Name, config.Value, null, config.Description, config.IsInternal, false);
entry.OnValueChangedUntyped += () =>
{