1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
|
main_options['r']=1;
}
if(main_options['n'] && main_options['i']) fatal("Switches -n and -i are conflicting\n");
if(main_options['n'] || main_options['i']) {
if(main_options['r']) fatal("Switches -r and -%c are conflicting\n",main_options['i']?'i':'n');
main_options['x']=1;
}
if(main_options['a'] || main_options['O']) main_options['r']=main_options['x']=1;
if(main_options['p']) main_options['r']=1;
if(main_options['f']) main_options['x']=1;
if(!main_options['c']) {
set_path(argv[0]);
load_options();
}
if(argc>optind) read_options(argc-optind,argv+optind);
|
|
|
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
|
main_options['r']=1;
}
if(main_options['n'] && main_options['i']) fatal("Switches -n and -i are conflicting\n");
if(main_options['n'] || main_options['i']) {
if(main_options['r']) fatal("Switches -r and -%c are conflicting\n",main_options['i']?'i':'n');
main_options['x']=1;
}
if(main_options['a'] || main_options['O'] || main_options['S']) main_options['r']=main_options['x']=1;
if(main_options['p']) main_options['r']=1;
if(main_options['f']) main_options['x']=1;
if(!main_options['c']) {
set_path(argv[0]);
load_options();
}
if(argc>optind) read_options(argc-optind,argv+optind);
|
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
|
if(level_ord>level_nindex) level_ord=level_nindex;
log_if_error(load_level(-level_ord));
}
optionquery[1]=Q_maxTrigger;
max_trigger=strtol(xrm_get_resource(resourcedb,optionquery,optionquery,2)?:"",0,10);
if(main_options['a']) run_auto_test();
if(main_options['O']) export_private_solutions();
if(main_options['x']) {
if(main_options['i']) {
batch_import();
if(main_options['f']) flush_usercache();
return 0;
} else if(main_options['f']) {
if(main_options['r']) fatal("Cannot flush user cache; puzzle set is read-only\n");
|
>
|
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
|
if(level_ord>level_nindex) level_ord=level_nindex;
log_if_error(load_level(-level_ord));
}
optionquery[1]=Q_maxTrigger;
max_trigger=strtol(xrm_get_resource(resourcedb,optionquery,optionquery,2)?:"",0,10);
if(main_options['a']) run_auto_test();
if(main_options['O']) export_private_solutions();
if(main_options['S']) make_level_hashes();
if(main_options['x']) {
if(main_options['i']) {
batch_import();
if(main_options['f']) flush_usercache();
return 0;
} else if(main_options['f']) {
if(main_options['r']) fatal("Cannot flush user cache; puzzle set is read-only\n");
|