From cf1ba319c1a3e15cbf72b29c1d09b1172a7657ef Mon Sep 17 00:00:00 2001 From: maj00r Date: Tue, 3 Nov 2026 21:51:54 +0100 Subject: [PATCH] Leave the settings as they are when they are written Writing the settings put them right for the simulator, DLSS to TAA on OpenGL and the like, in the object given. A preview of the changes or a look at the levels goes through the same write and changed the held settings. A copy is put right now. --- StarterNG/Infrastructure/Settings/SettingsSerializer.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/StarterNG/Infrastructure/Settings/SettingsSerializer.cs b/StarterNG/Infrastructure/Settings/SettingsSerializer.cs index 2e87b81..ab66b2f 100644 --- a/StarterNG/Infrastructure/Settings/SettingsSerializer.cs +++ b/StarterNG/Infrastructure/Settings/SettingsSerializer.cs @@ -237,8 +237,13 @@ public sealed class SettingsSerializer "starter.developertools", }; - public void Write(SimulatorSettings s, ConfigFile c) + /// + /// The settings into as the simulator would run with them, + /// which leaves as they are: a preview writes them too. + /// + public void Write(SimulatorSettings settings, ConfigFile c) { + var s = settings.Copy(); GraphicsRules.Normalize(s, _dlssPlatform); c.Set("lang", string.IsNullOrWhiteSpace(s.LanguageCode)