From e601902dd5a9f023594fef6a0f4995e59b4d9a0e Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 26 Feb 2022 20:34:42 +0100 Subject: Improve engine managemen --- src/game_tab/editor/EditorPanel.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/game_tab/editor/EditorPanel.cpp') diff --git a/src/game_tab/editor/EditorPanel.cpp b/src/game_tab/editor/EditorPanel.cpp index 641448e..3e6a7db 100644 --- a/src/game_tab/editor/EditorPanel.cpp +++ b/src/game_tab/editor/EditorPanel.cpp @@ -15,6 +15,17 @@ EditorPanel::EditorPanel(wxFrame *parent, Game *game) tags_list->InsertColumn(1, L"Value", wxLIST_FORMAT_LEFT, 500); tagTextCtrl->SetHint("Tag"); valueTextCtrl->SetHint("Value"); + CONFIG_OPEN(conf); + conf->SetPath("engines/"); + wxString engine_name; + long index; + if (conf->GetFirstGroup(engine_name, index)) { + do { + engine_list->Append(engine_name); + } while (conf->GetNextGroup(engine_name, index)); + } + + CONFIG_CLOSE(conf); RefreshTagsList(); // Bind events -- cgit v1.2.3