2008-01-07 00:19:09 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
/** @file settings_func.h Functions related to setting/changing the settings. */
|
|
|
|
|
|
|
|
#ifndef SETTINGS_FUNC_H
|
|
|
|
#define SETTINGS_FUNC_H
|
|
|
|
|
2008-07-22 14:17:29 +00:00
|
|
|
#include "core/smallvec_type.hpp"
|
|
|
|
|
2009-02-08 12:25:13 +00:00
|
|
|
void IConsoleSetSetting(const char *name, const char *value);
|
|
|
|
void IConsoleSetSetting(const char *name, int32 value);
|
|
|
|
void IConsoleGetSetting(const char *name);
|
|
|
|
void IConsoleListSettings(const char *prefilter);
|
2008-01-07 00:19:09 +00:00
|
|
|
|
|
|
|
void LoadFromConfig();
|
|
|
|
void SaveToConfig();
|
|
|
|
void CheckConfig();
|
|
|
|
|
2008-07-22 14:17:29 +00:00
|
|
|
/* Functions to load and save NewGRF settings to a separate
|
|
|
|
* configuration file, used for presets. */
|
|
|
|
typedef AutoFreeSmallVector<char *, 4> GRFPresetList;
|
|
|
|
|
|
|
|
void GetGRFPresetList(GRFPresetList *list);
|
|
|
|
struct GRFConfig *LoadGRFPresetFromConfig(const char *config_name);
|
|
|
|
void SaveGRFPresetToConfig(const char *config_name, struct GRFConfig *config);
|
|
|
|
void DeleteGRFPresetFromConfig(const char *config_name);
|
|
|
|
|
2009-05-26 13:29:01 +00:00
|
|
|
uint GetCompanySettingIndex(const char *name);
|
|
|
|
void SyncCompanySettings();
|
2009-05-26 23:14:02 +00:00
|
|
|
void SetDefaultCompanySettings(CompanyID cid);
|
2009-05-26 13:29:01 +00:00
|
|
|
|
2008-01-07 00:19:09 +00:00
|
|
|
#endif /* SETTINGS_FUNC_H */
|