tron@2186: /* $Id$ */ tron@2186: truelight@543: #ifndef SETTINGS_H truelight@543: #define SETTINGS_H truelight@543: truelight@543: enum SettingDescType { truelight@543: SDT_INTX, // must be 0 truelight@543: SDT_ONEOFMANY, truelight@543: SDT_MANYOFMANY, truelight@543: SDT_BOOLX, truelight@543: SDT_STRING, truelight@543: SDT_STRINGBUF, truelight@543: SDT_INTLIST, dominik@759: SDT_STRINGQUOT, // string with quotation marks around it tron@2307: SDT_CHAR, truelight@543: truelight@543: SDT_INT8 = 0 << 4, truelight@543: SDT_UINT8 = 1 << 4, truelight@543: SDT_INT16 = 2 << 4, truelight@543: SDT_UINT16 = 3 << 4, truelight@543: SDT_INT32 = 4 << 4, truelight@543: SDT_UINT32 = 5 << 4, truelight@543: SDT_CALLBX = 6 << 4, truelight@543: truelight@543: SDT_UINT = SDT_UINT32, truelight@543: SDT_INT = SDT_INT32, truelight@543: truelight@543: SDT_NOSAVE = 1 << 8, truelight@543: truelight@543: SDT_CALLB = SDT_INTX | SDT_CALLBX, truelight@543: truelight@543: SDT_BOOL = SDT_BOOLX | SDT_UINT8, truelight@543: }; truelight@543: dominik@705: typedef enum { dominik@705: IGT_VARIABLES = 0, // values of the form "landscape = hilly" dominik@705: IGT_LIST = 1, // a list of values, seperated by \n and terminated by the next group block dominik@705: } IniGroupType; dominik@705: truelight@543: typedef struct SettingDesc { truelight@543: const char *name; truelight@543: int flags; truelight@543: const void *def; truelight@543: void *ptr; truelight@543: const void *b; truelight@543: } SettingDesc; truelight@543: Darkvater@1739: void IConsoleSetPatchSetting(const char *name, const char *value); Darkvater@1739: void IConsoleGetPatchSetting(const char *name); Darkvater@1739: truelight@543: #endif /* SETTINGS_H */