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 2cbd724 commit d3ee39d
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 @@ -1448,22 +1448,6 @@ public void WriteConfigFile(string configFilePath, bool resetFile = true)
sections.Add("sound", new Dictionary<string, string>());
sections.Add("touch", new Dictionary<string, string>());

if (_game.Settings.LetterboxMode)
{
sections["misc"]["defaultres"] = ((int)_game.Settings.LegacyLetterboxResolution).ToString();
sections["misc"]["letterbox"] = "1";
sections["misc"]["game_width"] = null;
sections["misc"]["game_height"] = null;
}
else
{
sections["misc"]["defaultres"] = null;
sections["misc"]["letterbox"] = null;
sections["misc"]["game_width"] = _game.Settings.CustomResolution.Width.ToString();
sections["misc"]["game_height"] = _game.Settings.CustomResolution.Height.ToString();
}
sections["misc"]["gamecolordepth"] = (((int)_game.Settings.ColorDepth) * 8).ToString();

sections["graphics"]["driver"] = GetGfxDriverConfigID(_game.DefaultSetup.GraphicsDriver);
sections["graphics"]["windowed"] = _game.DefaultSetup.Windowed ? "1" : "0";
sections["graphics"]["fullscreen"] =
Expand Down

0 comments on commit d3ee39d

Please sign in to comment.