Change newlines to Environment.NewLine

This commit is contained in:
Chord 2017-03-19 18:08:27 -04:00
parent 0cfd4f0b9d
commit 3cb7989b92

View file

@ -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 ? "" : "#");
}