aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/SaveManager.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-27 19:33:45 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-27 19:33:45 +0100
commitb2fc208fbdb55ecc3cba59e2dd51976ce829a4be (patch)
tree1a60e74b7533403831868b04943978987cec2c75 /src/crepe/api/SaveManager.cpp
parentecc5761fa78ccb57db958467c3fc999aceadd409 (diff)
WIP db facade
Diffstat (limited to 'src/crepe/api/SaveManager.cpp')
-rw-r--r--src/crepe/api/SaveManager.cpp11
1 files changed, 11 insertions, 0 deletions
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<DB>("./save.crepe.db");
+}
+
SaveManager & SaveManager::get_instance() {
+ dbg_trace();
static SaveManager instance;
return instance;
}