diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-03 15:09:05 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-03 15:09:05 +0100 |
commit | a2607bffb1c0f8699021b1b4b3e54fa372e3ed0a (patch) | |
tree | 6ce416f4be55b9d8e3f73d6556450ee86f18774e /src/crepe/DB.cpp | |
parent | 83ce876b4c1b12c3654413515840f5f71907ea6c (diff) |
more WIP savemanager
Diffstat (limited to 'src/crepe/DB.cpp')
-rw-r--r-- | src/crepe/DB.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/DB.cpp b/src/crepe/DB.cpp index b8448a7..b188637 100644 --- a/src/crepe/DB.cpp +++ b/src/crepe/DB.cpp @@ -7,7 +7,7 @@ using namespace std; using namespace crepe; -DB::DB(const char * path) { +DB::DB(const string & path) { dbg_trace(); int ret; @@ -18,7 +18,7 @@ DB::DB(const char * path) { this->db = { db, [] (libdb::DB * db) { db->close(db, 0); } }; // load or create database file - if ((ret = this->db->open(this->db.get(), NULL, path, NULL, libdb::DB_BTREE, DB_CREATE, 0)) != 0) { + if ((ret = this->db->open(this->db.get(), NULL, path.c_str(), NULL, libdb::DB_BTREE, DB_CREATE, 0)) != 0) { throw nullptr; } |