From a84f99596f0d25753ec4c1aae71b161fe641614a Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 18 Jan 2013 10:27:47 +0100 Subject: [PATCH 1/1] 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. --- xboard2uci.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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); } -- 1.7.0.4