Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Separate db update from CDatabase::Open() #1128
We've been talking about this for a while. This is an attempt.
There's a couple of gotchas. The first is that the addon manager is configured very early, thus the Addon Database has to be updated early (before the addon manager). The rest are happy with things done in Initialize(). The second is we need to re-initialize everything on profile switch.
There's the potential that this could be threaded if we want - CDatabaseManager::CanOpen() would have to be blocking if so - personally I find it only takes about 5 seconds or so to update from quite old databases on load, so possibly not worth it.