From bc4ea3f87bfab2b8932b5d8bf1709a6e79928d75 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 2 Jan 2016 20:00:01 +0000 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20duplicate=20the=20final=20newli?= =?UTF-8?q?ne=20when=20saving=20upgraded=20yaml.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UtilityCommands/UpgradeModCommand.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/OpenRA.Mods.Common/UtilityCommands/UpgradeModCommand.cs b/OpenRA.Mods.Common/UtilityCommands/UpgradeModCommand.cs index df960f5979..99cab44484 100644 --- a/OpenRA.Mods.Common/UtilityCommands/UpgradeModCommand.cs +++ b/OpenRA.Mods.Common/UtilityCommands/UpgradeModCommand.cs @@ -40,7 +40,7 @@ namespace OpenRA.Mods.Common.UtilityCommands UpgradeRules.UpgradeActorRules(engineDate, ref yaml, null, 0); using (var file = new StreamWriter(filename)) - file.WriteLine(yaml.WriteToString()); + file.Write(yaml.WriteToString()); } Console.WriteLine("Processing Weapons:"); @@ -51,7 +51,7 @@ namespace OpenRA.Mods.Common.UtilityCommands UpgradeRules.UpgradeWeaponRules(engineDate, ref yaml, null, 0); using (var file = new StreamWriter(filename)) - file.WriteLine(yaml.WriteToString()); + file.Write(yaml.WriteToString()); } Console.WriteLine("Processing Tilesets:"); @@ -62,7 +62,7 @@ namespace OpenRA.Mods.Common.UtilityCommands UpgradeRules.UpgradeTileset(engineDate, ref yaml, null, 0); using (var file = new StreamWriter(filename)) - file.WriteLine(yaml.WriteToString()); + file.Write(yaml.WriteToString()); } Console.WriteLine("Processing Cursors:"); @@ -73,7 +73,7 @@ namespace OpenRA.Mods.Common.UtilityCommands UpgradeRules.UpgradeCursors(engineDate, ref yaml, null, 0); using (var file = new StreamWriter(filename)) - file.WriteLine(yaml.WriteToString()); + file.Write(yaml.WriteToString()); } Console.WriteLine("Processing Chrome Metrics:"); @@ -84,7 +84,7 @@ namespace OpenRA.Mods.Common.UtilityCommands UpgradeRules.UpgradeChromeMetrics(engineDate, ref yaml, null, 0); using (var file = new StreamWriter(filename)) - file.WriteLine(yaml.WriteToString()); + file.Write(yaml.WriteToString()); } Console.WriteLine("Processing Chrome Layout:"); @@ -95,7 +95,7 @@ namespace OpenRA.Mods.Common.UtilityCommands UpgradeRules.UpgradeChromeLayout(engineDate, ref yaml, null, 0); using (var file = new StreamWriter(filename)) - file.WriteLine(yaml.WriteToString()); + file.Write(yaml.WriteToString()); } Console.WriteLine("Processing Maps:");