Skip to content

Commit

Permalink
Changes for CMaNGOS
Browse files Browse the repository at this point in the history
-Since each config file has been having its own export prefix changed it away from the world config to eluna.
-Include needed in header file
  • Loading branch information
Niam5 committed Apr 8, 2024
1 parent 26ca8ad commit 372a0ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions ElunaConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

#if defined TRINITY || defined MANGOS
#include "Config.h"
#elif defined CMANGOS || defined VMANGOS
#include "Config/Config.h"
#endif
#include "ElunaConfig.h"

Expand Down Expand Up @@ -36,7 +34,7 @@ void ElunaConfig::Initialize()
return;
}
#elif CMANGOS
if (!config.SetSource(ELUNA_CONFIG, "Mangosd_"))
if (!config.SetSource(ELUNA_CONFIG, "Eluna_"))
{
sLog.outString("Unable to open configuration file(%s). Eluna will be disabled.", ELUNA_CONFIG);
return;
Expand Down
3 changes: 3 additions & 0 deletions ElunaConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#define _ELUNACONFIG_H

#include "ElunaUtility.h"
#if defined CMANGOS || defined VMANGOS
#include "Config/Config.h"
#endif

#define ELUNA_CONFIG "eluna.conf"

Expand Down

0 comments on commit 372a0ae

Please sign in to comment.