]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/database-leveldb.h
Formspec: textarea with scrollbar improvements
[dragonfireclient.git] / src / database-leveldb.h
index 17194674131e86627f81b229a5de00879a1d66c1..d30f9f8f5dd9f733fb98bd879f603c681d0b8884 100644 (file)
@@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef DATABASE_LEVELDB_HEADER
-#define DATABASE_LEVELDB_HEADER
+#pragma once
 
 #include "config.h"
 
@@ -28,7 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "database.h"
 #include "leveldb/db.h"
 
-class Database_LevelDB : public Database
+class Database_LevelDB : public MapDatabase
 {
 public:
        Database_LevelDB(const std::string &savedir);
@@ -39,10 +38,11 @@ class Database_LevelDB : public Database
        bool deleteBlock(const v3s16 &pos);
        void listAllLoadableBlocks(std::vector<v3s16> &dst);
 
+       void beginSave() {}
+       void endSave() {}
+
 private:
        leveldb::DB *m_database;
 };
 
 #endif // USE_LEVELDB
-
-#endif