From 86034c2326a71174d2387a3e25a6527f6c4d0aa0 Mon Sep 17 00:00:00 2001 From: Ivan Mogilko Date: Sat, 4 Nov 2023 03:28:39 +0300 Subject: [PATCH] Editor: do not generate deprecated settings in acsetup.cfg These are no longer necessary: - Winsetup are reading these from the pre-loaded game data; - Other tools may receive these by querying engine with `--tell-gameproperties` command arg. --- Editor/AGS.Editor/AGSEditor.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Editor/AGS.Editor/AGSEditor.cs b/Editor/AGS.Editor/AGSEditor.cs index 39ba9716eac..617a9ff206a 100644 --- a/Editor/AGS.Editor/AGSEditor.cs +++ b/Editor/AGS.Editor/AGSEditor.cs @@ -1589,22 +1589,6 @@ public void WriteConfigFile(string configFilePath, bool resetFile = true) if (resetFile) Utilities.TryDeleteFile(configFilePath); - if (_game.Settings.LetterboxMode) - { - NativeProxy.WritePrivateProfileString("misc", "defaultres", ((int)_game.Settings.LegacyLetterboxResolution).ToString(), configFilePath); - NativeProxy.WritePrivateProfileString("misc", "letterbox", "1", configFilePath); - NativeProxy.WritePrivateProfileString("misc", "game_width", null, configFilePath); - NativeProxy.WritePrivateProfileString("misc", "game_height", null, configFilePath); - } - else - { - NativeProxy.WritePrivateProfileString("misc", "defaultres", null, configFilePath); - NativeProxy.WritePrivateProfileString("misc", "letterbox", null, configFilePath); - NativeProxy.WritePrivateProfileString("misc", "game_width", _game.Settings.CustomResolution.Width.ToString(), configFilePath); - NativeProxy.WritePrivateProfileString("misc", "game_height", _game.Settings.CustomResolution.Height.ToString(), configFilePath); - } - NativeProxy.WritePrivateProfileString("misc", "gamecolordepth", (((int)_game.Settings.ColorDepth) * 8).ToString(), configFilePath); - NativeProxy.WritePrivateProfileString("graphics", "driver", GetGfxDriverConfigID(_game.DefaultSetup.GraphicsDriver), configFilePath); NativeProxy.WritePrivateProfileString("graphics", "windowed", _game.DefaultSetup.Windowed ? "1" : "0", configFilePath); NativeProxy.WritePrivateProfileString("graphics", "fullscreen",