From 32fdf9272e1a94f8c51274a1758f4feae555341a Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 27 Dec 2022 18:33:21 +0100 Subject: Cleaning code --- src/ochess.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ochess.cpp') diff --git a/src/ochess.cpp b/src/ochess.cpp index 3cfa8be..e9dd94f 100644 --- a/src/ochess.cpp +++ b/src/ochess.cpp @@ -19,6 +19,12 @@ std::vector MyApp::ListTabInfos() { return (tinfos); } +void MyApp::NewGame(TabInfos *tabsrc,std::shared_ptr g){ + MainWindow *w=((MainWindow *)this->GetTopWindow()); + TabInfos *i=w->NewGame(g); + i->Link(tabsrc); // Link opened game to tabsrc +} + wxIMPLEMENT_APP(MyApp); -- cgit v1.2.3