(svn r1897) - Fix: [ 1120424 ] Set name overwrites same name. Renamings because your name is in use are virtual though so if name "b" is in use your name will become "b #1", renaming yourself again to "b" will become "b #2", and will toggle between these two.
#ifndef SETTINGS_H#define SETTINGS_HenumSettingDescType{SDT_INTX,// must be 0SDT_ONEOFMANY,SDT_MANYOFMANY,SDT_BOOLX,SDT_STRING,SDT_STRINGBUF,SDT_INTLIST,SDT_STRINGQUOT,// string with quotation marks around itSDT_INT8=0<<4,SDT_UINT8=1<<4,SDT_INT16=2<<4,SDT_UINT16=3<<4,SDT_INT32=4<<4,SDT_UINT32=5<<4,SDT_CALLBX=6<<4,SDT_UINT=SDT_UINT32,SDT_INT=SDT_INT32,SDT_NOSAVE=1<<8,SDT_CALLB=SDT_INTX|SDT_CALLBX,SDT_BOOL=SDT_BOOLX|SDT_UINT8,};typedefenum{IGT_VARIABLES=0,// values of the form "landscape = hilly"IGT_LIST=1,// a list of values, seperated by \n and terminated by the next group block}IniGroupType;typedefstructSettingDesc{constchar*name;intflags;constvoid*def;void*ptr;constvoid*b;}SettingDesc;#endif /* SETTINGS_H */