From ff7b3541f47088aa91cfba81169b3e8475525411 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 21 Sep 2014 00:18:38 +1200 Subject: [PATCH] =?UTF-8?q?Remove=20obsolete=20=E2=80=94upgrade-map-v5=20a?= =?UTF-8?q?nd=20--setings-value=20commands.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenRA.Utility/Command.cs | 25 ------------------------- OpenRA.Utility/Program.cs | 2 -- 2 files changed, 27 deletions(-) diff --git a/OpenRA.Utility/Command.cs b/OpenRA.Utility/Command.cs index 92fa94826e..c013c83123 100644 --- a/OpenRA.Utility/Command.cs +++ b/OpenRA.Utility/Command.cs @@ -34,22 +34,6 @@ namespace OpenRA.Utility yield return path; } - [Desc("KEY", "Get value of KEY from settings.yaml")] - public static void Settings(string[] args) - { - if (args.Length < 2) - { - Console.WriteLine("Error: Invalid syntax"); - return; - } - - var section = args[1].Split('.')[0]; - var field = args[1].Split('.')[1]; - var settings = new Settings(Platform.SupportDir + "settings.yaml", Arguments.Empty); - var result = settings.Sections[section].GetType().GetField(field).GetValue(settings.Sections[section]); - Console.WriteLine(result); - } - [Desc("PNGFILE [PNGFILE ...]", "Combine a list of PNG images into a SHP")] public static void ConvertPngToShp(string[] args) { @@ -550,15 +534,6 @@ namespace OpenRA.Utility Console.WriteLine(dest + " saved."); } - [Desc("MAPFILE", "MOD", "Upgrade a version 5 map to version 6.")] - public static void UpgradeV5Map(string[] args) - { - var map = args[1]; - var mod = args[2]; - Game.modData = new ModData(mod); - new Map(map, mod); - } - [Desc("MOD", "FILENAME", "Convert a legacy INI/MPR map to the OpenRA format.")] public static void ImportLegacyMap(string[] args) { diff --git a/OpenRA.Utility/Program.cs b/OpenRA.Utility/Program.cs index 1a32fe6b78..cf1a765061 100644 --- a/OpenRA.Utility/Program.cs +++ b/OpenRA.Utility/Program.cs @@ -20,7 +20,6 @@ namespace OpenRA.Utility { static readonly Dictionary> Actions = new Dictionary>() { - { "--settings-value", Command.Settings }, { "--shp", Command.ConvertPngToShp }, { "--png", Command.ConvertSpriteToPng }, { "--extract", Command.ExtractFiles }, @@ -30,7 +29,6 @@ namespace OpenRA.Utility { "--lua-docs", Command.ExtractLuaDocs }, { "--map-hash", Command.GetMapHash }, { "--map-preview", Command.GenerateMinimap }, - { "--map-upgrade-v5", Command.UpgradeV5Map }, { "--upgrade-map", UpgradeRules.UpgradeMap }, { "--upgrade-mod", UpgradeRules.UpgradeMod }, { "--map-import", Command.ImportLegacyMap },