2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 /** @file settings_func.h Functions related to setting/changing the settings. */
10 #ifndef SETTINGS_FUNC_H
11 #define SETTINGS_FUNC_H
13 #include "core/smallvec_type.hpp"
14 #include "company_type.h"
15 #include "string_type.h"
19 void IConsoleSetSetting(const char *name
, const char *value
, bool force_newgame
= false);
20 void IConsoleSetSetting(const char *name
, int32 value
);
21 void IConsoleGetSetting(const char *name
, bool force_newgame
= false);
22 void IConsoleListSettings(const char *prefilter
);
24 void LoadFromConfig(bool minimal
= false);
27 void IniLoadWindowSettings(IniFile
&ini
, const char *grpname
, void *desc
);
28 void IniSaveWindowSettings(IniFile
&ini
, const char *grpname
, void *desc
);
30 StringList
GetGRFPresetList();
31 struct GRFConfig
*LoadGRFPresetFromConfig(const char *config_name
);
32 void SaveGRFPresetToConfig(const char *config_name
, struct GRFConfig
*config
);
33 void DeleteGRFPresetFromConfig(const char *config_name
);
35 void SetDefaultCompanySettings(CompanyID cid
);
37 void SyncCompanySettings();
39 #endif /* SETTINGS_FUNC_H */