[Code] DatabaseUpdate Global to Singleton Cleanup

This commit is contained in:
Kinglykrab
2025-06-20 22:55:57 -04:00
parent 1be7e56b86
commit 511829351c
2 changed files with 8 additions and 2 deletions
+7
View File
@@ -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;