mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
Merge pull request #1138 from Aireil/patch-10
This commit is contained in:
commit
d4eeb67fc8
1 changed files with 11 additions and 0 deletions
|
|
@ -29,6 +29,12 @@ internal class DalamudCommands : IServiceType
|
||||||
HelpMessage = Loc.Localize("DalamudUnloadHelp", "Unloads XIVLauncher in-game addon."),
|
HelpMessage = Loc.Localize("DalamudUnloadHelp", "Unloads XIVLauncher in-game addon."),
|
||||||
ShowInHelp = false,
|
ShowInHelp = false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
commandManager.AddHandler("/xlkill", new CommandInfo(this.OnKillCommand)
|
||||||
|
{
|
||||||
|
HelpMessage = "Kill the game.",
|
||||||
|
ShowInHelp = false,
|
||||||
|
});
|
||||||
|
|
||||||
commandManager.AddHandler("/xlhelp", new CommandInfo(this.OnHelpCommand)
|
commandManager.AddHandler("/xlhelp", new CommandInfo(this.OnHelpCommand)
|
||||||
{
|
{
|
||||||
|
|
@ -141,6 +147,11 @@ internal class DalamudCommands : IServiceType
|
||||||
Service<ChatGui>.Get().Print("Unloading...");
|
Service<ChatGui>.Get().Print("Unloading...");
|
||||||
Service<Dalamud>.Get().Unload();
|
Service<Dalamud>.Get().Unload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnKillCommand(string command, string arguments)
|
||||||
|
{
|
||||||
|
Process.GetCurrentProcess().Kill();
|
||||||
|
}
|
||||||
|
|
||||||
private void OnHelpCommand(string command, string arguments)
|
private void OnHelpCommand(string command, string arguments)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue