settings_func.h
Go to the documentation of this file.00001
00002
00005 #ifndef SETTINGS_FUNC_H
00006 #define SETTINGS_FUNC_H
00007
00008 #include "core/smallvec_type.hpp"
00009
00010 void IConsoleSetSetting(const char *name, const char *value);
00011 void IConsoleSetSetting(const char *name, int32 value);
00012 void IConsoleGetSetting(const char *name);
00013 void IConsoleListSettings(const char *prefilter);
00014
00015 void LoadFromConfig();
00016 void SaveToConfig();
00017 void CheckConfig();
00018
00019
00020
00021 typedef AutoFreeSmallVector<char *, 4> GRFPresetList;
00022
00023 void GetGRFPresetList(GRFPresetList *list);
00024 struct GRFConfig *LoadGRFPresetFromConfig(const char *config_name);
00025 void SaveGRFPresetToConfig(const char *config_name, struct GRFConfig *config);
00026 void DeleteGRFPresetFromConfig(const char *config_name);
00027
00028 #endif