summaryrefslogtreecommitdiff
path: root/src/common/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-30 23:27:06 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-30 23:27:06 +0300
commitce092b3c79d7c624df4632535f65d7a663f6054e (patch)
treea9369f704d4566d073ec78db481bf9838b077437 /src/common/init.c
parent50a97b0ef2a8365d87a8a57047caccb0c050c56b (diff)
downloadevol-hercules-ce092b3c79d7c624df4632535f65d7a663f6054e.tar.gz
evol-hercules-ce092b3c79d7c624df4632535f65d7a663f6054e.tar.bz2
evol-hercules-ce092b3c79d7c624df4632535f65d7a663f6054e.tar.xz
evol-hercules-ce092b3c79d7c624df4632535f65d7a663f6054e.zip
char: add init default map.
Diffstat (limited to 'src/common/init.c')
-rw-r--r--src/common/init.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/common/init.c b/src/common/init.c
new file mode 100644
index 0000000..38797dc
--- /dev/null
+++ b/src/common/init.c
@@ -0,0 +1,38 @@
+// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+// Copyright (c) 2014 Evol developers
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "../../../common/HPMi.h"
+#include "../../../common/conf.h"
+#include "../../../common/malloc.h"
+#include "../../../common/mapindex.h"
+#include "../../../common/mmo.h"
+#include "../../../common/socket.h"
+#include "../../../common/strlib.h"
+#include "../../../common/sysinfo.h"
+#include "../../../common/timer.h"
+
+void interfaces_init_common(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");
+ DB = GET_SYMBOL("DB");
+}
+
+void setDefaultMap(void)
+{
+ mapindex->default_map = "000-1";
+ mapindex->default_x = 80;
+ mapindex->default_y = 109;
+}