void Tpreset::TautoPresetItem::reg_op(TregOp &t)
{
    t._REG_OP_N(0,item->regIs,is,item->defIs);
    if (item->regVal) {
        char_t val[MAX_PATH];
        mergetok(val,MAX_PATH,_l(";"),vals);
        t._REG_OP_S(0,item->regVal,val,MAX_PATH,item->defVal);
        strtok(val,_l(";"),vals);
    }
}
void TpresetSettings::reg_op(TregOp &t)
{
 t._REG_OP_N("flip",settings.flip,0);
 t._REG_OP_N("idct",settings.idct,0);
 for (unsigned int i=0;i<filters.size();i++)
  filters[i]->reg_op(t);
}
void Tpreset::reg_op(TregOp &t)
{
    Toptions::reg_op(t);

    for (TfilterIDFFs::iterator f=filters->begin(); f!=filters->end(); f++)
        if (f->cfg) {
            f->cfg->reg_op(t);
        }

    t._REG_OP_N(0,_l("autoloadExtsNeedFix"),autoloadExtsNeedFix,1);
    for (TautoPresetItems::iterator a=autoPresetItems.begin(); a!=autoPresetItems.end(); a++) {
        a->reg_op(t);
        if (autoloadExtsNeedFix && a->item->getVal==&TautoPresetProps::getSourceName) {
            autoloadExtsNeedFix=0;
            a->addWild();
        }
    }
}