- ret->w = atoi(cfg[0].sval);
- ret->h = atoi(cfg[1].sval);
- ret->blackpc = atoi(cfg[2].sval);
- ret->symm = cfg[3].ival;
- ret->difficulty = cfg[4].ival;
+ ret->w = atoi(cfg[0].u.string.sval);
+ ret->h = atoi(cfg[1].u.string.sval);
+ ret->blackpc = atoi(cfg[2].u.string.sval);
+ ret->symm = cfg[3].u.choices.selected;
+ ret->difficulty = cfg[4].u.choices.selected;