MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / SetActive

Method SetActive

loader/Main/Module.cs:42–70  ·  view source on GitHub ↗
(bool active)

Source from the content-addressed store, hash-verified

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}

Callers 2

HandleInstallMethod · 0.80
MainPageClass · 0.80

Calls 4

DeletePathMethod · 0.80
CreateMethod · 0.80
SetDebuggerMethod · 0.80
RemoveDebuggerMethod · 0.80

Tested by

no test coverage detected