File tree Expand file tree Collapse file tree 1 file changed +18
-13
lines changed
Expand file tree Collapse file tree 1 file changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -486,19 +486,24 @@ def configure_engine(self):
486486
487487 However if default_value and user_value are the same, we will not send
488488 commands to set the option value because the value is default already.
489- """
490- with open (self .engine_config_file , 'r' ) as json_file :
491- data = json .load (json_file )
492- for p in data :
493- if p ['name' ] == self .engine_id_name :
494- for n in p ['options' ]:
495-
496- if n ['name' ].lower () == 'ownbook' :
497- self .is_ownbook = True
498-
499- # Ignore button type for a moment.
500- if n ['type' ] == 'button' :
501- continue
489+ """
490+ with open (self .engine_config_file , 'r' ) as json_file :
491+ data = json .load (json_file )
492+ managed_uci_options = {name .lower () for name in MANAGED_UCI_OPTIONS }
493+ for p in data :
494+ if p ['name' ] == self .engine_id_name :
495+ for n in p ['options' ]:
496+ option_name = n ['name' ].lower ()
497+
498+ if option_name == 'ownbook' :
499+ self .is_ownbook = True
500+
501+ if self .analysis and option_name in managed_uci_options :
502+ continue
503+
504+ # Ignore button type for a moment.
505+ if n ['type' ] == 'button' :
506+ continue
502507
503508 if n ['type' ] == 'spin' :
504509 user_value = int (n ['value' ])
You can’t perform that action at this time.
0 commit comments