From 5fd343195be5632ba341031953d4a4e6d9317253 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 18 Jun 2017 20:31:19 -0400 Subject: Localize a lot of the window titles --- ShiftOS_TheReturn/TerminalBackend.cs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'ShiftOS_TheReturn/TerminalBackend.cs') diff --git a/ShiftOS_TheReturn/TerminalBackend.cs b/ShiftOS_TheReturn/TerminalBackend.cs index d60b675..c8c6ba9 100644 --- a/ShiftOS_TheReturn/TerminalBackend.cs +++ b/ShiftOS_TheReturn/TerminalBackend.cs @@ -447,19 +447,6 @@ namespace ShiftOS.Engine return true; } - /// - /// Runs a command on the client-side. - /// - /// The command's namespace. - /// The command name. - /// The command's arguments. - /// Whether the command should be ran through RTS. - /// Whether the command ran successfully. - public static bool RunClient(string ns, string cmd, Dictionary args, bool isRemote = false) - { - return RunClient(ns + "." + cmd, args, isRemote); - } - /// /// Runs a command on the client. /// @@ -491,8 +478,7 @@ namespace ShiftOS.Engine //Console.WriteLine(text + " " + "{" + string.Join(",", args.Select(kv => kv.Key + "=" + kv.Value).ToArray()) + "}" + " " + isRemote); - string[] split = text.Split('.'); - var cmd = Commands.FirstOrDefault(x => x.CommandInfo.name == text); + var cmd = Commands.FirstOrDefault(x => Localization.Parse(x.CommandInfo.name) == text); if (cmd == null) return false; if (!Shiftorium.UpgradeInstalled(cmd.Dependencies)) -- cgit v1.2.3