mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-26 04:22:38 +00:00
[F] Nested types patches without enable
This commit is contained in:
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…
x
Reference in New Issue
Block a user