|
@ -56,6 +56,9 @@ Overlay State::openDB(std::string _path, bool _killExisting) |
|
|
_path = Defaults::get()->m_dbPath; |
|
|
_path = Defaults::get()->m_dbPath; |
|
|
boost::filesystem::create_directory(_path); |
|
|
boost::filesystem::create_directory(_path); |
|
|
|
|
|
|
|
|
|
|
|
if (_killExisting) |
|
|
|
|
|
boost::filesystem::remove_all(_path + "/state"); |
|
|
|
|
|
|
|
|
ldb::Options o; |
|
|
ldb::Options o; |
|
|
o.create_if_missing = true; |
|
|
o.create_if_missing = true; |
|
|
ldb::DB* db = nullptr; |
|
|
ldb::DB* db = nullptr; |
|
|