Skip to content

Commit 2eccd06

Browse files
committed
Allow passing options starting with UCI_ to engines. This is needed to send options such as UCI_ShowWDL and UCI_ShowMovesLeft to Lc0.
1 parent 989a870 commit 2eccd06

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

projects/lib/src/uciengine.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ QStringRef UciEngine::parseUciTokens(const QStringRef& first,
353353
if (token == types[i])
354354
{
355355
if (type != -1)
356-
returreset.old000022/event.pgn:n token;
356+
return token;
357357
type = i;
358358
newType = true;
359359
break;
@@ -768,12 +768,6 @@ void UciEngine::parseLine(const QString& line)
768768
m_sendOpponentsName = true;
769769
else if (option->name() == "Ponder")
770770
m_canPonder = true;
771-
//else if (option->name().startsWith("UCI_") &&
772-
// option->name() != "UCI_LimitStrength" &&
773-
// option->name() != "UCI_Elo")
774-
//{
775-
// // TODO: Deal with UCI features
776-
//}
777771
else
778772
{
779773
addOption(option);

0 commit comments

Comments
 (0)