From: Fabian Fichter Date: Tue, 5 May 2020 17:37:02 +0000 (+0200) Subject: Hide redundant options in CECP protocol X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=0f8ce41a8ede6734a26e19efd91aa936d4fb16b7;p=fairystockfish.git Hide redundant options in CECP protocol Avoid conflicting configuration via options with respective protocol commands (cores, memory, variant). Closes #119. --- diff --git a/src/ucioption.cpp b/src/ucioption.cpp index e8d9124..0509cb2 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -161,7 +161,8 @@ std::ostream& operator<<(std::ostream& os, const OptionsMap& om) { { for (size_t idx = 0; idx < om.size(); ++idx) for (const auto& it : om) - if (it.second.idx == idx && it.first != "Protocol") + if (it.second.idx == idx && it.first != "Protocol" && it.first != "UCI_Variant" + && it.first != "Threads" && it.first != "Hash") { const Option& o = it.second; os << "\nfeature option=\"" << it.first << " -" << o.type;