aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/SaveManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/SaveManager.cpp')
-rw-r--r--src/crepe/api/SaveManager.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/crepe/api/SaveManager.cpp b/src/crepe/api/SaveManager.cpp
new file mode 100644
index 0000000..83ff0fa
--- /dev/null
+++ b/src/crepe/api/SaveManager.cpp
@@ -0,0 +1,20 @@
+#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;
+}
+