mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 16:37:06 +00:00
[10081] Use ACE config library instead dotconfpp
NOTE: all config versions update because in old state
it's not compatible with new way loading.
Look for *.conf.dist.in chnages in commit for update configs.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
e63dc32f4d
commit
41d178ca7b
7 changed files with 54 additions and 52 deletions
|
|
@ -22,7 +22,7 @@
|
|||
#include <Policies/Singleton.h>
|
||||
#include "Platform/Define.h"
|
||||
|
||||
class DOTCONFDocument;
|
||||
class ACE_Configuration_Heap;
|
||||
|
||||
class MANGOS_DLL_SPEC Config
|
||||
{
|
||||
|
|
@ -31,7 +31,7 @@ class MANGOS_DLL_SPEC Config
|
|||
Config();
|
||||
~Config();
|
||||
|
||||
bool SetSource(const char *file, bool ignorecase = true);
|
||||
bool SetSource(const char *file);
|
||||
bool Reload();
|
||||
|
||||
std::string GetStringDefault(const char* name, const char* def);
|
||||
|
|
@ -44,8 +44,7 @@ class MANGOS_DLL_SPEC Config
|
|||
private:
|
||||
|
||||
std::string mFilename;
|
||||
bool mIgnoreCase;
|
||||
DOTCONFDocument *mConf;
|
||||
ACE_Configuration_Heap *mConf;
|
||||
};
|
||||
|
||||
#define sConfig MaNGOS::Singleton<Config>::Instance()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue