settings_func.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef SETTINGS_FUNC_H
00013 #define SETTINGS_FUNC_H
00014
00015 #include "core/smallvec_type.hpp"
00016
00017 void IConsoleSetSetting(const char *name, const char *value);
00018 void IConsoleSetSetting(const char *name, int32 value);
00019 void IConsoleGetSetting(const char *name);
00020 void IConsoleListSettings(const char *prefilter);
00021
00022 void LoadFromConfig();
00023 void SaveToConfig();
00024 void CheckConfig();
00025
00026
00027
00028 typedef AutoFreeSmallVector<char *, 4> GRFPresetList;
00029
00030 void GetGRFPresetList(GRFPresetList *list);
00031 struct GRFConfig *LoadGRFPresetFromConfig(const char *config_name);
00032 void SaveGRFPresetToConfig(const char *config_name, struct GRFConfig *config);
00033 void DeleteGRFPresetFromConfig(const char *config_name);
00034
00035 uint GetCompanySettingIndex(const char *name);
00036 void SetDefaultCompanySettings(CompanyID cid);
00037
00038 #if defined(ENABLE_NETWORK)
00039 void SyncCompanySettings();
00040 #else
00041 static inline void SyncCompanySettings() {}
00042 #endif
00043
00044 #endif