由于EvalStackObfus会显著增加混淆后的程序集大小(当obfuscationPercentage=1.0时大约增加了5倍),将默认obfuscationPercentage改为0.05,并且在global obfuscationPercentage超过0.1时打印警告
parent
49194ca1af
commit
3bcb093467
|
@ -64,7 +64,7 @@ namespace Obfuz.ObfusPasses.EvalStackObfus
|
|||
private static readonly ObfuscationRule s_default = new ObfuscationRule()
|
||||
{
|
||||
obfuscationLevel = ObfuscationLevel.Basic,
|
||||
obfuscationPercentage = 0.5f,
|
||||
obfuscationPercentage = 0.05f,
|
||||
};
|
||||
|
||||
private ObfuscationRule _global;
|
||||
|
@ -92,6 +92,10 @@ namespace Obfuz.ObfusPasses.EvalStackObfus
|
|||
{
|
||||
_global.InheritParent(s_default);
|
||||
}
|
||||
if (_global.obfuscationPercentage.Value > 0.1f)
|
||||
{
|
||||
UnityEngine.Debug.LogWarning($"EvalStackObfus significantly increases the size of the obfuscated hot-update DLL. It is recommended to keep the obfuscationPercentage ≤ 0.1 (currently set to {_global.obfuscationPercentage.Value}).");
|
||||
}
|
||||
_xmlParser.InheritParentRules(_global);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue