aboutsummaryrefslogtreecommitdiff
path: root/src/ochess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ochess.cpp')
-rw-r--r--src/ochess.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ochess.cpp b/src/ochess.cpp
index 605c1a2..a7fb50b 100644
--- a/src/ochess.cpp
+++ b/src/ochess.cpp
@@ -25,6 +25,12 @@ void MyApp::NewGame(TabInfos *tabsrc,std::shared_ptr<Game> g){
i->Link(tabsrc); // Link opened game to tabsrc
}
+void MyApp::NewGame(std::shared_ptr<Game> g){
+ MainWindow *w=((MainWindow *)this->GetTopWindow());
+ w->NewGame(g);
+}
+
+
wxIMPLEMENT_APP(MyApp);