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

Commit

Permalink
Fix not using preset of rule in ObfAttrMarker
Browse files Browse the repository at this point in the history
  • Loading branch information
yck1509 committed Mar 18, 2016
1 parent cb18230 commit 36132ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Confuser.Core/ObfAttrMarker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ ProtectionSettingsInfo ToInfo(Rule rule, PatternExpression expr) {
info.ApplyToMember = true;

var settings = new StringBuilder();
if (rule.Preset != ProtectionPreset.None)
settings.AppendFormat("preset({0});", rule.Preset.ToString().ToLowerInvariant());
foreach (var item in rule) {
settings.Append(item.Action == SettingItemAction.Add ? '+' : '-');
settings.Append(item.Id);
Expand Down

0 comments on commit 36132ed

Please sign in to comment.