From 5f4936e70b92a625f54d791debadf65d8fa3a02c Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Mon, 2 Aug 2010 22:59:34 +0200 Subject: Changed the stat file name to attributes.xml. I also made it required to start properly since it's now the case. Reviewed-by: Jaxad0127. --- src/account-server/main-account.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/account-server/main-account.cpp') diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp index e43f1a65..a059c38e 100644 --- a/src/account-server/main-account.cpp +++ b/src/account-server/main-account.cpp @@ -50,9 +50,10 @@ using utils::Logger; // Default options that automake should be able to override. -#define DEFAULT_LOG_FILE "manaserv-account.log" -#define DEFAULT_STATS_FILE "manaserv.stats" -#define DEFAULT_CONFIG_FILE "manaserv.xml" +#define DEFAULT_LOG_FILE "manaserv-account.log" +#define DEFAULT_STATS_FILE "manaserv.stats" +#define DEFAULT_CONFIG_FILE "manaserv.xml" +#define DEFAULT_ATTRIBUTEDB_FILE "attributes.xml" static bool running = true; /**< Determines if server keeps running */ @@ -339,7 +340,8 @@ int main(int argc, char *argv[]) initialize(); std::string host = Configuration::getValue("net_listenHost", std::string()); - if (!AccountClientHandler::initialize(options.port, host) || + if (!AccountClientHandler::initialize(DEFAULT_ATTRIBUTEDB_FILE, + options.port, host) || !GameServerHandler::initialize(options.port + 1, host) || !chatHandler->startListen(options.port + 2, host)) { -- cgit v1.2.3-60-g2f50