mirror of https://github.com/hykilpikonna/AquaDX
[F] Nested types patches without enable
parent
d9fc262003
commit
39dc6c576a
|
@ -25,6 +25,10 @@ namespace AquaMai
|
||||||
{
|
{
|
||||||
MelonLogger.Msg($"> Patching {type}");
|
MelonLogger.Msg($"> Patching {type}");
|
||||||
HarmonyInstance.PatchAll(type);
|
HarmonyInstance.PatchAll(type);
|
||||||
|
foreach (var nested in type.GetNestedTypes())
|
||||||
|
{
|
||||||
|
Patch(nested);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -56,10 +60,6 @@ namespace AquaMai
|
||||||
if (directiveType != null)
|
if (directiveType != null)
|
||||||
{
|
{
|
||||||
Patch(directiveType);
|
Patch(directiveType);
|
||||||
foreach (var nested in directiveType.GetNestedTypes())
|
|
||||||
{
|
|
||||||
Patch(nested);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else MelonLogger.Error($"Type not found for {categoryProp.Name}.{settingProp.Name}");
|
else MelonLogger.Error($"Type not found for {categoryProp.Name}.{settingProp.Name}");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue