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.
This commit is contained in:
Pieter-Jan Briers
2021-01-31 00:08:34 +01:00
parent 86841385c6
commit e0bf335030

View File

@@ -54,7 +54,7 @@ namespace Content.Client.Parallax
{ {
using (var reader = new StreamReader(configStream, EncodingHelpers.UTF8)) using (var reader = new StreamReader(configStream, EncodingHelpers.UTF8))
{ {
contents = reader.ReadToEnd(); contents = reader.ReadToEnd().Replace(Environment.NewLine, "\n");
} }
if (!debugParallax && _resourceCache.UserData.Exists(ParallaxConfigOld)) if (!debugParallax && _resourceCache.UserData.Exists(ParallaxConfigOld))