From e0bf335030c61f06c7439fd82fd0e039fabab47a Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sun, 31 Jan 2021 00:08:34 +0100 Subject: [PATCH] Fix parallax constantly regenerating on Windows. Because Windows does CRLF (yuck) the parallax file mismatches with the one shipped with the actual launcher client. We now normalize the EOLs to fix this. --- Content.Client/Parallax/ParallaxManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Client/Parallax/ParallaxManager.cs b/Content.Client/Parallax/ParallaxManager.cs index 9ff1bc08ed..3a17cc2ea6 100644 --- a/Content.Client/Parallax/ParallaxManager.cs +++ b/Content.Client/Parallax/ParallaxManager.cs @@ -54,7 +54,7 @@ namespace Content.Client.Parallax { using (var reader = new StreamReader(configStream, EncodingHelpers.UTF8)) { - contents = reader.ReadToEnd(); + contents = reader.ReadToEnd().Replace(Environment.NewLine, "\n"); } if (!debugParallax && _resourceCache.UserData.Exists(ParallaxConfigOld))