Fix: Stopped ships shouldn't block depots (#8578)
[openttd-github.git] / src / settings_func.h
blob4a55821cf6082e6e693f85fc3369c77a2603e6ac
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 "core/smallvec_type.hpp"
14 #include "company_type.h"
15 #include "string_type.h"
17 struct IniFile;
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);
25 void SaveToConfig();
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 uint GetCompanySettingIndex(const char *name);
36 void SetDefaultCompanySettings(CompanyID cid);
38 void SyncCompanySettings();
40 #endif /* SETTINGS_FUNC_H */