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:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user