From 93dd228452fd107df3cc00ef4c9445e3712ecaca Mon Sep 17 00:00:00 2001 From: hemagx Date: Sat, 26 Dec 2015 09:45:48 +0200 Subject: Move declaration of login config struct to login interface Closes #1030 as merged Signed-off-by: Haru --- src/login/login.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/login/login.h') diff --git a/src/login/login.h b/src/login/login.h index 8036d04ad..f79f75cb3 100644 --- a/src/login/login.h +++ b/src/login/login.h @@ -152,7 +152,7 @@ struct login_interface { DBMap* auth_db; DBMap* online_db; int fd; - struct Login_Config *lc; + struct Login_Config *config; struct AccountDB* accounts; int (*mmo_auth) (struct login_session_data* sd, bool isServer); @@ -209,13 +209,14 @@ struct login_interface { void (*char_server_connection_status) (int fd, struct login_session_data* sd, uint8 status); void (*parse_request_connection) (int fd, struct login_session_data* sd, const char *ip, uint32 ipl); int (*parse_login) (int fd); + void (*config_set_defaults) (void); + int (*config_read) (const char *cfgName); char *LOGIN_CONF_NAME; char *NET_CONF_NAME; ///< Network configuration filename }; #ifdef HERCULES_CORE extern struct mmo_char_server server[MAX_SERVERS]; -extern struct Login_Config login_config; void login_defaults(void); #endif // HERCULES_CORE -- cgit v1.2.3-60-g2f50