From ca6c1b1e75e771e3bea596367e502b77dea2c3aa Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 26 Feb 2022 19:21:52 +0100 Subject: Improve engine support --- src/engine_tab/EngineTab.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/engine_tab/EngineTab.cpp') diff --git a/src/engine_tab/EngineTab.cpp b/src/engine_tab/EngineTab.cpp index 760b416..ae9b447 100644 --- a/src/engine_tab/EngineTab.cpp +++ b/src/engine_tab/EngineTab.cpp @@ -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); -- cgit v1.2.3