From d1638304f504ca6cbfa36eb7a951b530f374bd10 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Fri, 2 Dec 2016 09:09:18 +0100 Subject: [PATCH] Also allow Make Persist on engines loaded through -fe / -se The options -fe and -se are another way to select engines from the list, and MakePersistent should also work in this case. So the engine lines retrieved for the given nicks are now also remembered. --- backend.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index 6e1da23..3792971 100644 --- a/backend.c +++ b/backend.c @@ -11343,6 +11343,7 @@ GetEngineLine (char *s, int n) if(n == 1) SwapEngines(n); ParseArgsFromString(buf); if(n == 1) SwapEngines(n); + if(n < 2) { ASSIGN(currentEngine[n], command[i]); } if(n == 0 && *appData.secondChessProgram == NULLCHAR) { SwapEngines(1); // set second same as first if not yet set (to suppress WB startup dialog) ParseArgsFromString(buf); -- 1.7.0.4