Allow UCI engines to emit WB commands wrapped as info strings
authorH.G. Muller <h.g.muller@hccnet.nl>
Fri, 18 Jan 2013 09:27:47 +0000 (10:27 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Fri, 18 Jan 2013 09:35:01 +0000 (10:35 +0100)
Any info-string starting ith the keyword 'xboard' will be forwarded to
the GUI (after stripping the 'xboard') literally.

xboard2uci.c

index 198c457..893c99f 100644 (file)
@@ -1690,6 +1690,7 @@ static void send_info() {
     }else{
         min_depth=1;
     }
+    if(!strncmp(Uci->info, "xboard ", 7)) gui_send(GUI,"%s",Uci->info+7); else // kludge to allow UCI engines to use WB protocol
     gui_send(GUI,"%d %+d %.0f "S64_FORMAT" %s",Uci->best_depth>min_depth?Uci->best_depth:min_depth,
             0,0.0,U64(0),Uci->info);  
 }