mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-11 23:17:28 +08:00
[F] Nested types patches without enable
This commit is contained in:
@@ -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}");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user