AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Banner.h"
#include "Config.h"
#include "DatabaseEnv.h"
#include "DatabaseLoader.h"
#include "IoContext.h"
#include "Log.h"
#include "MySQLThreading.h"
#include "OpenSSLCrypto.h"
#include "Util.h"
#include <boost/program_options.hpp>
#include <boost/version.hpp>
#include <csignal>
#include <filesystem>
#include <iostream>
#include <openssl/crypto.h>
#include <openssl/opensslv.h>
Go to the source code of this file.
Macros | |
#define | _ACORE_DB_IMPORT_CONFIG "dbimport.conf" |
Functions | |
bool | StartDB () |
Initialize connection to the database. | |
void | StopDB () |
Close the connection to the database. | |
variables_map | GetConsoleArguments (int argc, char **argv, fs::path &configFile) |
int | main (int argc, char **argv) |
Launch the db import server. | |
#define _ACORE_DB_IMPORT_CONFIG "dbimport.conf" |
variables_map GetConsoleArguments | ( | int | argc, |
char ** | argv, | ||
fs::path & | configFile | ||
) |
References _ACORE_DB_IMPORT_CONFIG, and sConfigMgr.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Launch the db import server.
References _ACORE_DB_IMPORT_CONFIG, Acore::AbortHandler(), GetConsoleArguments(), LOG_INFO, sConfigMgr, Acore::Banner::Show(), sLog, StartDB(), StopDB(), OpenSSLCrypto::threadsCleanup(), and OpenSSLCrypto::threadsSetup().
bool StartDB | ( | ) |
Initialize connection to the database.
References DatabaseLoader::AddDatabase(), CharacterDatabase, MySQL::Library_Init(), DatabaseLoader::Load(), LOG_INFO, LoginDatabase, and WorldDatabase.
Referenced by main().
void StopDB | ( | ) |
Close the connection to the database.
References CharacterDatabase, MySQL::Library_End(), LoginDatabase, and WorldDatabase.
Referenced by main().