aboutsummaryrefslogtreecommitdiff
path: root/src/base_tab/gamebase/GameBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base_tab/gamebase/GameBase.cpp')
-rw-r--r--src/base_tab/gamebase/GameBase.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base_tab/gamebase/GameBase.cpp b/src/base_tab/gamebase/GameBase.cpp
index a4c51ce..3d7b5d3 100644
--- a/src/base_tab/gamebase/GameBase.cpp
+++ b/src/base_tab/gamebase/GameBase.cpp
@@ -11,4 +11,9 @@ std::shared_ptr<GameBase> OpenDatabase(const std::string &dbpath, bool createIfN
return std::shared_ptr<GameBase>(new PGNGameBase(dbpath));
}
return nullptr;
+}
+
+std::shared_ptr<Game> OpenGameX(const std::string &dbpath, long id){
+ std::shared_ptr<GameBase> base=OpenDatabase(dbpath);
+ return base->GetGame(id);
} \ No newline at end of file