src/settings_func.h
changeset 9677 4767b9937c04
parent 9426 a77c8a4abcf5
child 9893 bd16f5239fa4
equal deleted inserted replaced
9676:8339e7fc7708 9677:4767b9937c04
     2 
     2 
     3 /** @file settings_func.h Functions related to setting/changing the settings. */
     3 /** @file settings_func.h Functions related to setting/changing the settings. */
     4 
     4 
     5 #ifndef SETTINGS_FUNC_H
     5 #ifndef SETTINGS_FUNC_H
     6 #define SETTINGS_FUNC_H
     6 #define SETTINGS_FUNC_H
       
     7 
       
     8 #include "core/smallvec_type.hpp"
     7 
     9 
     8 void IConsoleSetPatchSetting(const char *name, const char *value);
    10 void IConsoleSetPatchSetting(const char *name, const char *value);
     9 void IConsoleSetPatchSetting(const char *name, int32 value);
    11 void IConsoleSetPatchSetting(const char *name, int32 value);
    10 void IConsoleGetPatchSetting(const char *name);
    12 void IConsoleGetPatchSetting(const char *name);
    11 void IConsoleListPatches();
    13 void IConsoleListPatches();
    12 
    14 
    13 void LoadFromConfig();
    15 void LoadFromConfig();
    14 void SaveToConfig();
    16 void SaveToConfig();
    15 void CheckConfig();
    17 void CheckConfig();
    16 
    18 
       
    19 /* Functions to load and save NewGRF settings to a separate
       
    20  * configuration file, used for presets. */
       
    21 typedef AutoFreeSmallVector<char *, 4> GRFPresetList;
       
    22 
       
    23 void GetGRFPresetList(GRFPresetList *list);
       
    24 struct GRFConfig *LoadGRFPresetFromConfig(const char *config_name);
       
    25 void SaveGRFPresetToConfig(const char *config_name, struct GRFConfig *config);
       
    26 void DeleteGRFPresetFromConfig(const char *config_name);
       
    27 
    17 #endif /* SETTINGS_FUNC_H */
    28 #endif /* SETTINGS_FUNC_H */