From 3cb7989b928059f71374e32d72897909d2cd3b40 Mon Sep 17 00:00:00 2001 From: Chord Date: Sun, 19 Mar 2017 18:08:27 -0400 Subject: [PATCH] Change newlines to Environment.NewLine --- PSLauncher/ClientINI.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PSLauncher/ClientINI.cs b/PSLauncher/ClientINI.cs index b5c096d..11c97eb 100644 --- a/PSLauncher/ClientINI.cs +++ b/PSLauncher/ClientINI.cs @@ -31,16 +31,16 @@ namespace PSLauncher FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location); string version = fvi.FileVersion; - string contents = "# FILE AUTOGENERATED BY PSForever Launcher " + version + "\n"; - contents += "[network]\n"; + string contents = "# FILE AUTOGENERATED BY PSForever Launcher " + version + Environment.NewLine; + contents += "[network]" + Environment.NewLine; for(int i = 0; i < entries.Count; i++) { ServerEntry entry = entries[i]; - contents += "# Name: " + entry.name + "\n"; + contents += "# Name: " + entry.name + Environment.NewLine; // we only want login0 to be used, but have the rest written there for manual editing as well - contents += String.Format("{3}login{0}={1}:{2}\n", i, entry.hostname, entry.port, + contents += String.Format("{3}login{0}={1}:{2}" + Environment.NewLine, i, entry.hostname, entry.port, i == 0 ? "" : "#"); }