[F] Nested types patches without enable

This commit is contained in:
Clansty
2024-09-11 00:38:13 +08:00
parent d9fc262003
commit 39dc6c576a

View File

@@ -25,6 +25,10 @@ namespace AquaMai
{
MelonLogger.Msg($"> Patching {type}");
HarmonyInstance.PatchAll(type);
foreach (var nested in type.GetNestedTypes())
{
Patch(nested);
}
}
/**
@@ -56,10 +60,6 @@ namespace AquaMai
if (directiveType != null)
{
Patch(directiveType);
foreach (var nested in directiveType.GetNestedTypes())
{
Patch(nested);
}
}
else MelonLogger.Error($"Type not found for {categoryProp.Name}.{settingProp.Name}");
}