X-Git-Url: http://winboard.nl/cgi-bin?p=uci2wb.git;a=blobdiff_plain;f=UCI2WB.c;h=2db14246a106a8ab19aeff6e5219738857ac006c;hp=ebcd79c6de7915fd67ec89a1f0807e5273c4bd4f;hb=734efe5910e2696b2fe52370758d888998377142;hpb=3ac3bb55a99f03831492829d8135e83f567d59b9 diff --git a/UCI2WB.c b/UCI2WB.c index ebcd79c..2db1424 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -358,6 +358,10 @@ Engine2GUI() sprintf(buf, ",%s,", name); if(strcasestr(EGT, buf)) { buf[strlen(buf)-5] = 0; strcat(egts, buf); continue; } // collect EGT formats // pass on engine-defined option as WB option feature if(!strcmp(type, "filename")) type[4] = 0; + else if(sc == 'c' && !strcmp(type, "string")) { // in UCI try to guess which strings are file or directory names + if(strcasestr(name, "file")) strcpy(type, "file"); else + if(strcasestr(name, "path") || strcasestr(name, "directory") || strcasestr(name, "folder")) strcpy(type, "path"); + } sprintf(buf, "feature option=\"%s -%s", name, type); q = buf + strlen(buf); if( !strcmp(type, "file") || !strcmp(type, "string")) sprintf(q, " %s\"\n", val);