summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Db3x_mmap/src/init.cpp')
-rw-r--r--plugins/Db3x_mmap/src/init.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/plugins/Db3x_mmap/src/init.cpp b/plugins/Db3x_mmap/src/init.cpp
index 032b43b5d4..ae530c6457 100644
--- a/plugins/Db3x_mmap/src/init.cpp
+++ b/plugins/Db3x_mmap/src/init.cpp
@@ -120,7 +120,26 @@ static int UnloadDatabase(MIDatabase* db)
delete (CDb3Mmap*)db;
return 0;
}
+/*
+static CheckWorker Workers[6] =
+{
+ &CDb3Mmap::WorkInitialChecks,
+ &CDb3Mmap::WorkModuleChain,
+ &CDb3Mmap::WorkUser,
+ &CDb3Mmap::WorkContactChain,
+ &CDb3Mmap::WorkAggressive,
+ &CDb3Mmap::WorkFinalTasks
+};
+static int CheckDb(DBCHeckCallback *callback, int phase, int firstTime)
+{
+ if (phase >= SIZEOF(Workers))
+ return ERROR_NO_MORE_ITEMS;
+
+ CDb3Mmap* db = (CDb3Mmap*)callback->db;
+ return (db->*Workers[phase])(callback, firstTime);
+}
+*/
static DATABASELINK dblink =
{
sizeof(DATABASELINK),
@@ -129,7 +148,8 @@ static DATABASELINK dblink =
makeDatabase,
grokHeader,
LoadDatabase,
- UnloadDatabase
+ UnloadDatabase,
+ //CheckDb
};
/////////////////////////////////////////////////////////////////////////////////////////