mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-08 01:13:35 +00:00
[Code] DatabaseUpdate Global to Singleton Cleanup (#4943)
Co-authored-by: Chris Miles <akkadius1@gmail.com>
This commit is contained in:
1 parent
b5f1e99d3b
commit
4f7ff2d6f2
2 files changed
+8
-2
No files matched your search
@@ -33,6 +33,13 @@ public:
|
||||
DatabaseUpdate *SetContentDatabase(Database *db);
|
||||
DatabaseUpdate *SetSkipBackup(bool skip);
|
||||
bool HasPendingUpdates();
|
||||
|
||||
static DatabaseUpdate* Instance()
|
||||
{
|
||||
static DatabaseUpdate instance;
|
||||
return &instance;
|
||||
}
|
||||
|
||||
private:
|
||||
bool m_skip_backup = false;
|
||||
Database *m_database;
|
||||
|
||||
Reference in new issue
Block a user