projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4062f30
)
Add variant reinitialization on protocol change
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Thu, 11 Mar 2021 22:12:46 +0000 (23:12 +0100)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Thu, 11 Mar 2021 22:12:46 +0000 (23:12 +0100)
This ensures reinitialization of PSQT when changing the
default variant by switching the protocol via usi/ucci.
No functional change for UCI and CECP usage.
src/ucioption.cpp
patch
|
blob
|
history
diff --git
a/src/ucioption.cpp
b/src/ucioption.cpp
index
d75c7fd
..
7b78f57
100644
(file)
--- a/
src/ucioption.cpp
+++ b/
src/ucioption.cpp
@@
-350,6
+350,9
@@
void Option::set_combo(std::vector<std::string> newComboValues) {
void Option::set_default(std::string newDefault) {
defaultValue = currentValue = newDefault;
+
+ if (on_change)
+ on_change(*this);
}
const std::string Option::get_type() const {