diff options
-rw-r--r-- | src/Makefile.am | 10 | ||||
-rw-r--r-- | src/login/init.c | 38 |
2 files changed, 46 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 3151e5a..4d80375 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -6,11 +6,17 @@ MAP_SRC = map/dummy.c \ map/script.c \ map/script.h -lib_LTLIBRARIES = libevol_map.la +LOGIN_SRC = login/init.c + +lib_LTLIBRARIES = libevol_login.la libevol_map.la libevol_map_la_SOURCES = ${MAP_SRC} libevol_map_la_LDFLAGS = -avoid-version libevol_map_la_CFLAGS = -pipe -ffast-math -Wall -Wextra -Wno-sign-compare -all-local: libevol_map.la +libevol_login_la_SOURCES = ${LOGIN_SRC} +libevol_login_la_LDFLAGS = -avoid-version +libevol_login_la_CFLAGS = -pipe -ffast-math -Wall -Wextra -Wno-sign-compare + +all-local: libevol_login.la libevol_map.la cp .libs/*.so ../../../plugins cp .libs/*.so ../../../../server-data/plugins diff --git a/src/login/init.c b/src/login/init.c new file mode 100644 index 0000000..e729ac8 --- /dev/null +++ b/src/login/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/malloc.h" +#include "../../../common/mmo.h" +#include "../../../common/socket.h" +#include "../../../common/strlib.h" +#include "../../../login/login.h" + +#include "../../../common/HPMDataCheck.h" /* should always be the last file included! (if you don't make it last, it'll intentionally break compile time) */ + +HPExport struct hplugin_info pinfo = +{ + "evol_login", + SERVER_TYPE_LOGIN, + "0.1", + HPM_VERSION +}; + +/* run when server starts */ +HPExport void plugin_init (void) { + /* core interfaces */ + iMalloc = GET_SYMBOL("iMalloc"); +} + +HPExport void server_preinit (void) { +} + +HPExport void server_online (void) { +} + +HPExport void plugin_final (void) { +} |