(bool active)
| 40 | } |
| 41 | |
| 42 | public static bool SetActive(bool active) |
| 43 | { |
| 44 | if (IsActivated == active) |
| 45 | return true; |
| 46 | |
| 47 | if (Config.UseSymlink) |
| 48 | { |
| 49 | var path = SymlinkPath; |
| 50 | Utils.DeletePath(path); |
| 51 | |
| 52 | if (active) |
| 53 | { |
| 54 | Symlink.Create(path, ModulePath); |
| 55 | } |
| 56 | } |
| 57 | else |
| 58 | { |
| 59 | if (active) |
| 60 | { |
| 61 | IFEO.SetDebugger(TargetName, DebuggerValue); |
| 62 | } |
| 63 | else |
| 64 | { |
| 65 | IFEO.RemoveDebugger(TargetName); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | return IsActivated == active; |
| 70 | } |
| 71 | } |
| 72 | } |
no test coverage detected