Fix #10490: Allow ships to exit depots if another is not moving at the exit point...
[openttd-github.git] / src / settings_func.h
blob490ce9605f10c580b8593809b95f29a6566af83b
1 /*
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/>.
6 */
8 /** @file settings_func.h Functions related to setting/changing the settings. */
10 #ifndef SETTINGS_FUNC_H
11 #define SETTINGS_FUNC_H
13 #include "company_type.h"
14 #include "string_type.h"
16 struct IniFile;
18 void IConsoleSetSetting(const char *name, const char *value, bool force_newgame = false);
19 void IConsoleSetSetting(const char *name, int32_t value);
20 void IConsoleGetSetting(const char *name, bool force_newgame = false);
21 void IConsoleListSettings(const char *prefilter);
23 void LoadFromConfig(bool minimal = false);
24 void SaveToConfig();
26 void IniLoadWindowSettings(IniFile &ini, const char *grpname, void *desc);
27 void IniSaveWindowSettings(IniFile &ini, const char *grpname, void *desc);
29 StringList GetGRFPresetList();
30 struct GRFConfig *LoadGRFPresetFromConfig(const char *config_name);
31 void SaveGRFPresetToConfig(const char *config_name, struct GRFConfig *config);
32 void DeleteGRFPresetFromConfig(const char *config_name);
34 void SetDefaultCompanySettings(CompanyID cid);
36 void SyncCompanySettings();
38 #endif /* SETTINGS_FUNC_H */