mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Output DB/ScriptLib versions in ".server info" command.
Required support by used scripting library.
This commit is contained in:
parent
24549669a9
commit
6f190fedd4
15 changed files with 62 additions and 17 deletions
|
|
@ -2551,3 +2551,17 @@ void World::UpdateMaxSessionCounters()
|
|||
m_maxActiveSessionCount = std::max(m_maxActiveSessionCount,uint32(m_sessions.size()-m_QueuedPlayer.size()));
|
||||
m_maxQueuedSessionCount = std::max(m_maxQueuedSessionCount,uint32(m_QueuedPlayer.size()));
|
||||
}
|
||||
|
||||
void World::LoadDBVersion()
|
||||
{
|
||||
QueryResult* result = WorldDatabase.Query("SELECT version FROM db_version LIMIT 1");
|
||||
if(result)
|
||||
{
|
||||
Field* fields = result->Fetch();
|
||||
|
||||
m_DBVersion = fields[0].GetString();
|
||||
delete result;
|
||||
}
|
||||
else
|
||||
m_DBVersion = "unknown world database";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue