aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/VirusTestCommands.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/VirusTestCommands.cs')
-rw-r--r--ShiftOS.WinForms/VirusTestCommands.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/VirusTestCommands.cs b/ShiftOS.WinForms/VirusTestCommands.cs
index 09f1a36..f0fec96 100644
--- a/ShiftOS.WinForms/VirusTestCommands.cs
+++ b/ShiftOS.WinForms/VirusTestCommands.cs
@@ -20,6 +20,14 @@ namespace ShiftOS.WinForms
VirusManager.Infect(id, threatlevel);
}
+ [Command("disinfect", description = "DEBUG: Disinfect the system, removing the specified virus.")]
+ [RequiresArgument("id")]
+ public static void Disinfect(Dictionary<string, object> args)
+ {
+ var id = args["id"].ToString();
+
+ VirusManager.Disinfect(id);
+ }
}
#endif
} \ No newline at end of file