diff options
-rw-r--r-- | src/char/init.c | 14 | ||||
-rw-r--r-- | src/login/init.c | 14 | ||||
-rw-r--r-- | src/map/init.c | 15 |
3 files changed, 24 insertions, 19 deletions
diff --git a/src/char/init.c b/src/char/init.c index b1f31f2..5482afc 100644 --- a/src/char/init.c +++ b/src/char/init.c @@ -21,17 +21,19 @@ HPExport struct hplugin_info pinfo = HPM_VERSION }; -/* run when server starts */ -HPExport void plugin_init (void) { - /* core interfaces */ +HPExport void plugin_init (void) +{ iMalloc = GET_SYMBOL("iMalloc"); } -HPExport void server_preinit (void) { +HPExport void server_preinit (void) +{ } -HPExport void server_online (void) { +HPExport void server_online (void) +{ } -HPExport void plugin_final (void) { +HPExport void plugin_final (void) +{ } diff --git a/src/login/init.c b/src/login/init.c index da2afb5..92b6af6 100644 --- a/src/login/init.c +++ b/src/login/init.c @@ -25,9 +25,8 @@ HPExport struct hplugin_info pinfo = HPM_VERSION }; -/* run when server starts */ -HPExport void plugin_init (void) { - /* core interfaces */ +HPExport void plugin_init (void) +{ iMalloc = GET_SYMBOL("iMalloc"); session = GET_SYMBOL("session"); sockt = GET_SYMBOL("sockt"); @@ -35,12 +34,15 @@ HPExport void plugin_init (void) { addPacket(0x7530, 22, login_parse_version, hpParse_Login); } -HPExport void server_preinit (void) { +HPExport void server_preinit (void) +{ addLoginConf("update_server", config_update_server); } -HPExport void server_online (void) { +HPExport void server_online (void) +{ } -HPExport void plugin_final (void) { +HPExport void plugin_final (void) +{ } diff --git a/src/map/init.c b/src/map/init.c index fe4d6d2..c9536e7 100644 --- a/src/map/init.c +++ b/src/map/init.c @@ -28,12 +28,10 @@ HPExport struct hplugin_info pinfo = HPM_VERSION }; -/* run when server starts */ -HPExport void plugin_init (void) { - /* core interfaces */ +HPExport void plugin_init (void) +{ iMalloc = GET_SYMBOL("iMalloc"); - /* map-server interfaces */ script = GET_SYMBOL("script"); clif = GET_SYMBOL("clif"); pc = GET_SYMBOL("pc"); @@ -64,11 +62,14 @@ HPExport void plugin_init (void) { addPacket(0x7530, 22, map_parse_version, hpClif_Parse); } -HPExport void server_preinit (void) { +HPExport void server_preinit (void) +{ } -HPExport void server_online (void) { +HPExport void server_online (void) +{ } -HPExport void plugin_final (void) { +HPExport void plugin_final (void) +{ } |