mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-10 19:32:10 +00:00
Improve error handling of map database creation
This commit is contained in:
parent
7abaa8d4cd
commit
d54646d342
7 changed files with 71 additions and 32 deletions
|
@ -16,7 +16,12 @@ class Database
|
|||
public:
|
||||
virtual void beginSave() = 0;
|
||||
virtual void endSave() = 0;
|
||||
|
||||
/// @return true if database connection is open
|
||||
virtual bool initialized() const { return true; }
|
||||
|
||||
/// Open and initialize the database if needed
|
||||
virtual void verifyDatabase() {};
|
||||
};
|
||||
|
||||
class MapDatabase : public Database
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue