summaryrefslogtreecommitdiff
path: root/src/map/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-17 16:07:30 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-17 16:08:01 +0300
commitaa9464281141d0fe098285e0a32ca33d852c0552 (patch)
treea2896c27699b888ac3084f28d4a22ec0156af5e3 /src/map/init.c
parent974774dc41249f683019a8c8ed6954a099672157 (diff)
downloadevol-hercules-aa9464281141d0fe098285e0a32ca33d852c0552.tar.gz
evol-hercules-aa9464281141d0fe098285e0a32ca33d852c0552.tar.bz2
evol-hercules-aa9464281141d0fe098285e0a32ca33d852c0552.tar.xz
evol-hercules-aa9464281141d0fe098285e0a32ca33d852c0552.zip
Move common interfaces initialisation into separate file.
Diffstat (limited to 'src/map/init.c')
-rw-r--r--src/map/init.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/map/init.c b/src/map/init.c
index 7620757..52c5f58 100644
--- a/src/map/init.c
+++ b/src/map/init.c
@@ -10,8 +10,6 @@
#include "../../../common/mmo.h"
#include "../../../common/socket.h"
#include "../../../common/strlib.h"
-#include "../../../common/sysinfo.h"
-#include "../../../common/timer.h"
#include "../../../map/chat.h"
#include "../../../map/chrif.h"
#include "../../../map/clif.h"
@@ -35,6 +33,7 @@
#include "../../../map/trade.h"
#include "../../../map/quest.h"
+#include "common/interfaces.h"
#include "map/dummy.h"
#include "map/parse.h"
#include "map/script.h"
@@ -54,16 +53,7 @@ HPExport struct hplugin_info pinfo =
HPExport void plugin_init (void)
{
- iMalloc = GET_SYMBOL("iMalloc");
- strlib = GET_SYMBOL("strlib");
- session = GET_SYMBOL("session");
- sockt = GET_SYMBOL("sockt");
- sv = GET_SYMBOL("sv");
- StrBuf = GET_SYMBOL("StrBuf");
- SQL = GET_SYMBOL("SQL");
- timer = GET_SYMBOL("timer");
- libconfig = GET_SYMBOL("libconfig");
- sysinfo = GET_SYMBOL("sysinfo");
+ interfaces_init_common();
atcommand = GET_SYMBOL("atcommand");
battle = GET_SYMBOL("battle");