HarmonyX
HarmonyX copied to clipboard
Feature request - HarmonyOptional attribute
Add a patch attribute that marks the patch as optional - if the method is not found or patching fails, the patch process is not aborted and there's a warning given, not an error. It could have a parameter to specify if exceptions should be ignored or not. If target method is not found, it will always skip the patch (and show a short warning that an optional patch was skipped).
Use case is supporting multiple game versions where name or parameters of a method got changed.