From 09ad0eb744f89cd5f9df5541bb9d09f9a843e29c Mon Sep 17 00:00:00 2001 From: walon Date: Sun, 18 May 2025 22:04:37 +0800 Subject: [PATCH] change: if type contains `[ObfuzIgnore]` attribute, both itself and all nested type should be ignored. --- .../Editor/ObfuscationMethodWhitelist.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Obfuz/Packages/com.code-philosophy.obfuz/Editor/ObfuscationMethodWhitelist.cs b/Obfuz/Packages/com.code-philosophy.obfuz/Editor/ObfuscationMethodWhitelist.cs index f07b22a..2228353 100644 --- a/Obfuz/Packages/com.code-philosophy.obfuz/Editor/ObfuscationMethodWhitelist.cs +++ b/Obfuz/Packages/com.code-philosophy.obfuz/Editor/ObfuscationMethodWhitelist.cs @@ -61,6 +61,10 @@ namespace Obfuz { return true; } + if (type.DeclaringType != null && IsInWhiteList(type.DeclaringType)) + { + return true; + } if (type.FullName == "Obfuz.EncryptionVM.GeneratedEncryptionVirtualMachine") { return true;