feat: add Ignored and UnityEngine groups to hook configuration for better handling of Unity internals
This commit is contained in:
@@ -50,6 +50,8 @@ public sealed class HookClassifier
|
|||||||
["Maintenance"] = ["technician"],
|
["Maintenance"] = ["technician"],
|
||||||
["GameState"] = ["commandcenter", "fcp"],
|
["GameState"] = ["commandcenter", "fcp"],
|
||||||
["Serialization"] = ["registry", "type", "assembly"],
|
["Serialization"] = ["registry", "type", "assembly"],
|
||||||
|
["Ignored"] = ["tmpro", "example", "objectprivate", "abstractsealed"],
|
||||||
|
["UnityEngine"] = ["standardassets", "footstep", "stamina", "pulsating", "localisation", "localized", "gamepad", "userreport", "openurl", "hrsystem"],
|
||||||
};
|
};
|
||||||
|
|
||||||
public HookClassifier(IReadOnlyDictionary<string, HookGroupConfig> groups)
|
public HookClassifier(IReadOnlyDictionary<string, HookGroupConfig> groups)
|
||||||
|
|||||||
@@ -119,6 +119,16 @@
|
|||||||
"classes": ["AssemblyTypeRegistry"],
|
"classes": ["AssemblyTypeRegistry"],
|
||||||
"methods": ["BoxedGetHashCode", "Equals", "SetSharedStaticTypeIndices"]
|
"methods": ["BoxedGetHashCode", "Equals", "SetSharedStaticTypeIndices"]
|
||||||
},
|
},
|
||||||
|
"Ignored": {
|
||||||
|
"description": "Unity engine internals, TMP examples, and internal artifacts - do not patch",
|
||||||
|
"classes": ["Il2CppTMPro_Examples", "ObjectPrivateAbstractSealedInVo0"],
|
||||||
|
"methods": []
|
||||||
|
},
|
||||||
|
"UnityEngine": {
|
||||||
|
"description": "Unity Standard Assets and engine wrappers - generally not needed for mods",
|
||||||
|
"classes": ["MouseLook", "RayLookAt", "FootSteps", "StaminaOverlayOnEnable", "PositionIndicator", "PulsatingText", "AutoDisable", "HRSystem", "UserReport", "OpenURL", "GamepadIcons", "Localisation", "LocalisedText"],
|
||||||
|
"methods": []
|
||||||
|
},
|
||||||
"Misc": {
|
"Misc": {
|
||||||
"description": "Other utilities and catch-all hooks",
|
"description": "Other utilities and catch-all hooks",
|
||||||
"classes": [],
|
"classes": [],
|
||||||
|
|||||||
Reference in New Issue
Block a user