diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-26 19:21:52 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-26 19:21:52 +0100 |
| commit | ca6c1b1e75e771e3bea596367e502b77dea2c3aa (patch) | |
| tree | 0e1a2ac8540a35c4f63e97e7d7786a9c6571ba8c /src/engine_tab | |
| parent | 0e4814e72712c43dbf0d7dbc1bb75efaa76a94a0 (diff) | |
Improve engine support
Diffstat (limited to 'src/engine_tab')
| -rw-r--r-- | src/engine_tab/EngineTab.cpp | 6 | ||||
| -rw-r--r-- | src/engine_tab/EngineTab.hpp | 3 |
2 files changed, 5 insertions, 4 deletions
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); diff --git a/src/engine_tab/EngineTab.hpp b/src/engine_tab/EngineTab.hpp index 2792bc6..c4e8a52 100644 --- a/src/engine_tab/EngineTab.hpp +++ b/src/engine_tab/EngineTab.hpp @@ -9,7 +9,8 @@ class EngineTab : public EngineTabBF, public TabInfos { void InitConfiguration(); public: - EngineTab(wxWindow *parent, std::string engine_path_or_name); + EngineTab(wxWindow *parent, uciadapter::UCI *engine, + std::string engine_path_or_name); void ApplyPreferences() {} void *GetGame() { return (NULL); } void *GetBase() { return (NULL); } |
