From b2fc208fbdb55ecc3cba59e2dd51976ce829a4be Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sun, 27 Oct 2024 19:33:45 +0100 Subject: WIP db facade --- src/crepe/api/SaveManager.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/crepe/api/SaveManager.cpp') diff --git a/src/crepe/api/SaveManager.cpp b/src/crepe/api/SaveManager.cpp index a05e2c7..83ff0fa 100644 --- a/src/crepe/api/SaveManager.cpp +++ b/src/crepe/api/SaveManager.cpp @@ -1,8 +1,19 @@ +#include "../DB.h" +#include "util/log.h" + #include "SaveManager.h" +using namespace std; +using namespace crepe; using namespace crepe::api; +SaveManager::SaveManager() { + dbg_trace(); + this->db = make_unique("./save.crepe.db"); +} + SaveManager & SaveManager::get_instance() { + dbg_trace(); static SaveManager instance; return instance; } -- cgit v1.2.3