Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

Commit

Permalink
Process rules before declarative obfuscation attributes
Browse files Browse the repository at this point in the history
Fix #279
  • Loading branch information
yck1509 committed Oct 9, 2015
1 parent d455ede commit 310db56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Confuser.Core/ObfAttrMarker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ void ApplySettings(IDnlibDef def, Rules rules, IEnumerable<ProtectionSettingsInf
else
settings = new ProtectionSettings(settings);

ApplyRules(context, def, rules, settings);

ProtectionSettingsInfo? last = null;
var parser = new ObfAttrParser(protections);
foreach (var info in infos) {
Expand All @@ -170,8 +172,6 @@ void ApplySettings(IDnlibDef def, Rules rules, IEnumerable<ProtectionSettingsInf
!string.IsNullOrEmpty(last.Value.Settings)) {
parser.ParseProtectionString(settings, last.Value.Settings);
}

ApplyRules(context, def, rules, settings);
}

static readonly Regex NSPattern = new Regex("namespace '([^']*)'");
Expand Down

0 comments on commit 310db56

Please sign in to comment.