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

Commit

Permalink
Fix multiple loading of plugin in GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
yck1509 committed Dec 21, 2014
1 parent 5793cce commit 1e319eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ConfuserEx/ComponentDiscovery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,18 @@ public string PluginPath {
}

public void AddProtection(Info info) {
foreach (var comp in protections) {
if (comp.Id == info.id)
return;
}
protections.Add(new InfoComponent(info));
}

public void AddPacker(Info info) {
foreach (var comp in packers) {
if (comp.Id == info.id)
return;
}
packers.Add(new InfoComponent(info));
}

Expand Down

0 comments on commit 1e319eb

Please sign in to comment.