Skip to content

Commit

Permalink
Editor: do not generate deprecated settings in acsetup.cfg
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ivan-mogilko committed Nov 4, 2023
1 parent 2f1332e commit 86034c2
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions Editor/AGS.Editor/AGSEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 86034c2

Please sign in to comment.