472 |
|
|
473 |
|
|
474 |
/* All valid configuration commands. */ |
/* All valid configuration commands. */ |
475 |
static const char * cfg [] = { |
static const char *cfg [] = { |
476 |
NULL, |
NULL, |
477 |
"CacheTime", |
"CacheTime", |
478 |
"WordWrap", |
"WordWrap", |
479 |
"FastMode", |
"FastMode", |
480 |
"Viewer", |
"Viewer", |
481 |
"KeylistMode", |
"WipeMode", |
482 |
"WipeMode", |
"AlwaysTrust", |
483 |
"AlwaysTrust", |
"AutoBackup", |
484 |
"AutoBackup", |
"BackupMode", |
485 |
"BackupMode", |
"DisableHotkeys", |
486 |
"DisableHotkeys", |
"NoCompressMultiMedia", |
487 |
"NoCompressMultiMedia", |
"Expert", |
488 |
"Expert", |
"FMProgressBar", |
489 |
"FMProgressBar", |
}; |
|
}; |
|
490 |
|
|
491 |
|
|
492 |
int |
int |
545 |
case CFG_VIEWER: |
case CFG_VIEWER: |
546 |
sprintf (buf, "%d", opt->use_viewer); |
sprintf (buf, "%d", opt->use_viewer); |
547 |
break; |
break; |
|
case CFG_KEYLISTMODE: |
|
|
sprintf (buf, "%d", opt->keylist_mode); |
|
|
break; |
|
548 |
case CFG_ALWAYSTRUST: |
case CFG_ALWAYSTRUST: |
549 |
sprintf (buf, "%d", opt->always_trust); |
sprintf (buf, "%d", opt->always_trust); |
550 |
break; |
break; |
653 |
case CFG_VIEWER: |
case CFG_VIEWER: |
654 |
opt->use_viewer = atol (val); |
opt->use_viewer = atol (val); |
655 |
break; |
break; |
|
case CFG_KEYLISTMODE: |
|
|
opt->keylist_mode = atol (val); |
|
|
break; |
|
656 |
case CFG_WIPEMODE: |
case CFG_WIPEMODE: |
657 |
opt->wipe_mode = atol (val); |
opt->wipe_mode = atol (val); |
658 |
break; |
break; |