diff options
author | Haruna <haru@dotalux.com> | 2014-10-31 01:18:40 +0100 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2014-10-31 01:18:40 +0100 |
commit | 1d0452110f4b02f6d771c61d5c3a944f82b155f3 (patch) | |
tree | b36963aeb2f4924e49b5f4e80c270bf4275fb4c4 /src/char/HPMchar.c | |
parent | 72e18cdf9b612c476dd9ab2d45394c5e882e7dd1 (diff) | |
parent | 60becfc70e65ba7920079f990bfaa11851369f0c (diff) | |
download | hercules-1d0452110f4b02f6d771c61d5c3a944f82b155f3.tar.gz hercules-1d0452110f4b02f6d771c61d5c3a944f82b155f3.tar.bz2 hercules-1d0452110f4b02f6d771c61d5c3a944f82b155f3.tar.xz hercules-1d0452110f4b02f6d771c61d5c3a944f82b155f3.zip |
Merge pull request #378 from HerculesWS/hpmupdates
Char and login server preliminary support for the HPM system
Diffstat (limited to 'src/char/HPMchar.c')
-rw-r--r-- | src/char/HPMchar.c | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/char/HPMchar.c b/src/char/HPMchar.c new file mode 100644 index 000000000..4b153b244 --- /dev/null +++ b/src/char/HPMchar.c @@ -0,0 +1,53 @@ +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file + +#define HERCULES_CORE + +#include "HPMchar.h" + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <time.h> + +#include "../common/HPM.h" +#include "../common/cbasetypes.h" +#include "../common/conf.h" +#include "../common/db.h" +#include "../common/des.h" +#include "../common/ers.h" +#include "../common/malloc.h" +#include "../common/mapindex.h" +#include "../common/mmo.h" +#include "../common/showmsg.h" +#include "../common/socket.h" +#include "../common/strlib.h" +#include "../common/sysinfo.h" + +#include "../common/HPMDataCheck.h" + +bool HPM_char_grabHPData(struct HPDataOperationStorage *ret, enum HPluginDataTypes type, void *ptr) { + /* record address */ + switch( type ) { + default: + return false; + } + return true; +} + +void HPM_char_plugin_load_sub(struct hplugin *plugin) { +} + +void HPM_char_do_init(void) { +#if 0 // TODO (HPMDataCheck is disabled for the time being) + HPM->datacheck_init(HPMDataCheck, HPMDataCheckLen, HPMDataCheckVer); +#else + HPM->DataCheck = NULL; +#endif +} + +void HPM_char_do_final(void) { +#if 0 // TODO (HPMDataCheck is disabled for the time being) + HPM->datacheck_final(); +#endif +} |