Add secondry adapter command for UCCI or USI
[xboard.git] / uci.c
diff --git a/uci.c b/uci.c
index f78fb2c..1f39f6a 100644 (file)
--- a/uci.c
+++ b/uci.c
@@ -36,6 +36,7 @@ void InitEngineUCI( const char * iniDir, ChessProgramState * cps )
         char *p, *q;
         char polyglotCommand[MSG_SIZ];
 
+        if(cps->isUCI == 2) p = appData.ucciAdapter; else
         p = appData.adapterCommand;
         q = polyglotCommand;
         while(*p) {