From: H.G. Muller Date: Fri, 18 Jan 2013 09:27:47 +0000 (+0100) Subject: Allow UCI engines to emit WB commands wrapped as info strings X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=commitdiff_plain;h=a84f99596f0d25753ec4c1aae71b161fe641614a Allow UCI engines to emit WB commands wrapped as info strings Any info-string starting ith the keyword 'xboard' will be forwarded to the GUI (after stripping the 'xboard') literally. --- diff --git a/xboard2uci.c b/xboard2uci.c index 198c457..893c99f 100644 --- a/xboard2uci.c +++ b/xboard2uci.c @@ -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); }