Improve engine support

This commit is contained in:
Loic Guegan 2022-02-26 19:21:52 +01:00
parent 0e4814e727
commit ca6c1b1e75
5 changed files with 26 additions and 5 deletions

View file

@ -1,10 +1,10 @@
#include "EngineTab.hpp"
EngineTab::EngineTab(wxWindow *parent, std::string engine_path_or_name)
EngineTab::EngineTab(wxWindow *parent, uciadapter::UCI *engine,std::string engine_path_or_name)
: EngineTabBF(parent), TabInfos(TabInfos::ENGINE),
enginePath(engine_path_or_name) {
enginePath(engine_path_or_name), engine(engine) {
SetLabel("New Engine");
engine = new uciadapter::UCI(engine_path_or_name);
engine_location->SetValue(engine_path_or_name);
confGroup = "engines/bob";
CONFIG_OPEN(conf);