diff options
author | Haru <haru@dotalux.com> | 2015-08-11 02:17:37 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-08-15 00:51:45 +0200 |
commit | e7c2f7d827ad286dc826e483391e64b8ffe2720b (patch) | |
tree | 16cab3d257a795c015dfd55c0eaf2447d0f52462 /src/char | |
parent | 5efc9f173f6905da39f3037c278e0e880e82ca35 (diff) | |
download | hercules-e7c2f7d827ad286dc826e483391e64b8ffe2720b.tar.gz hercules-e7c2f7d827ad286dc826e483391e64b8ffe2720b.tar.bz2 hercules-e7c2f7d827ad286dc826e483391e64b8ffe2720b.tar.xz hercules-e7c2f7d827ad286dc826e483391e64b8ffe2720b.zip |
Automatic HPM symbol sharing
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/HPMchar.c | 1 | ||||
-rw-r--r-- | src/char/char.c | 21 |
2 files changed, 1 insertions, 21 deletions
diff --git a/src/char/HPMchar.c b/src/char/HPMchar.c index 3e8470e9b..a67f017c1 100644 --- a/src/char/HPMchar.c +++ b/src/char/HPMchar.c @@ -62,6 +62,7 @@ void HPM_char_plugin_load_sub(struct hplugin *plugin) { void HPM_char_do_init(void) { HPM->datacheck_init(HPMDataCheck, HPMDataCheckLen, HPMDataCheckVer); + HPM_shared_symbols(SERVER_TYPE_CHAR); } void HPM_char_do_final(void) { diff --git a/src/char/char.c b/src/char/char.c index 625103b71..576eb9630 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -5806,26 +5806,6 @@ void do_shutdown(void) } } -void char_hp_symbols(void) { - HPM->share(mapindex,"mapindex"); - HPM->share(chr, "chr"); - HPM->share(geoip, "geoip"); - HPM->share(inter_auction, "inter_auction"); - HPM->share(inter_elemental, "inter_elemental"); - HPM->share(inter_guild, "inter_guild"); - HPM->share(inter_homunculus, "inter_homunculus"); - HPM->share(inter_mail, "inter_mail"); - HPM->share(inter_mercenary, "inter_mercenary"); - HPM->share(inter_party, "inter_party"); - HPM->share(inter_pet, "inter_pet"); - HPM->share(inter_quest, "inter_quest"); - HPM->share(inter_storage, "inter_storage"); - HPM->share(inter, "inter"); - HPM->share(loginif, "loginif"); - HPM->share(mapif, "mapif"); - HPM->share(pincode, "pincode"); -} - /** * --char-config handler * @@ -5887,7 +5867,6 @@ int do_init(int argc, char **argv) { chr->server[i].map = NULL; HPM_char_do_init(); - HPM->symbol_defaults_sub = char_hp_symbols; cmdline->exec(argc, argv, CMDLINE_OPT_PREINIT); HPM->config_read(); HPM->event(HPET_PRE_INIT); |