summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-10 16:40:06 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-10 16:40:06 +0300
commite046ad1c14fcfaf32e8d00617848a45220494c1e (patch)
treeecaeaf8014288d4a881cf859661ed4d2210cbbce /src
parent05c7af3f7b93a0cab5a00c3930e55747452de410 (diff)
downloadevol-hercules-e046ad1c14fcfaf32e8d00617848a45220494c1e.tar.gz
evol-hercules-e046ad1c14fcfaf32e8d00617848a45220494c1e.tar.bz2
evol-hercules-e046ad1c14fcfaf32e8d00617848a45220494c1e.tar.xz
evol-hercules-e046ad1c14fcfaf32e8d00617848a45220494c1e.zip
Fix style in init files.
Diffstat (limited to 'src')
-rw-r--r--src/char/init.c14
-rw-r--r--src/login/init.c14
-rw-r--r--src/map/init.c15
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)
+{
}