Improve management of engines tabs

This commit is contained in:
Loic Guegan 2023-02-01 12:00:24 +01:00
parent d9818df879
commit e0babeaf88
5 changed files with 22 additions and 1 deletions

View file

@ -38,6 +38,7 @@ EngineTab::EngineTab(wxWindow *parent, std::uint32_t id)
SetLabel(name);
engine_name->SetValue(name);
engine_location->SetValue(conf->Read(confGroup + "/path"));
engine_id=id;
CONFIG_CLOSE(conf);
// Load existing configuration

View file

@ -21,6 +21,7 @@ public:
void ApplyPreferences() {}
std::shared_ptr<Game> GetGame() { return nullptr; }
std::shared_ptr<GameBase> GetBase() { return nullptr; }
std::uint32_t GetEngineId() { return engine_id; };
void OnSave(wxCommandEvent &event);
void OnDelete(wxCommandEvent &event);
};