diff options
author | Haru <haru@dotalux.com> | 2016-02-13 15:38:23 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-08-19 21:32:26 +0200 |
commit | 6cdb1e5ec2daa295b388d6c3a920b6cffe4193ce (patch) | |
tree | e4d67ff2bb7e80b6cab693f9ec24dac47b3a27a4 /src/common/HPM.h | |
parent | c0e59c874786cdf3bc5863090934b8e18ba0336d (diff) | |
download | hercules-6cdb1e5ec2daa295b388d6c3a920b6cffe4193ce.tar.gz hercules-6cdb1e5ec2daa295b388d6c3a920b6cffe4193ce.tar.bz2 hercules-6cdb1e5ec2daa295b388d6c3a920b6cffe4193ce.tar.xz hercules-6cdb1e5ec2daa295b388d6c3a920b6cffe4193ce.zip |
Ported battle.conf to libconfig
Ported to modern Hercules and cleaned up from Panikon's commits: 44fea0b3cdba6901599265220228ba4359b1f96d, 9cba05bc0811e638bbaaa6cff887d0b2c9872560
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/HPM.h')
-rw-r--r-- | src/common/HPM.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/HPM.h b/src/common/HPM.h index 0b1275fde..104522090 100644 --- a/src/common/HPM.h +++ b/src/common/HPM.h @@ -2,7 +2,7 @@ * This file is part of Hercules. * http://herc.ws - http://github.com/HerculesWS/Hercules * - * Copyright (C) 2013-2015 Hercules Dev Team + * Copyright (C) 2013-2016 Hercules Dev Team * * Hercules is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -65,7 +65,9 @@ #endif // WIN32 +/* Forward Declarations */ struct HPMHooking_core_interface; +struct config_t; struct hplugin { DLL dll; @@ -155,6 +157,7 @@ struct HPM_interface { void *(*import_symbol) (char *name, unsigned int pID); void (*share) (void *value, const char *name); void (*config_read) (void); + bool (*parse_battle_conf) (const struct config_t *config, const char *filename, bool imported); char *(*pid2name) (unsigned int pid); unsigned char (*parse_packets) (int fd, int packet_id, enum HPluginPacketHookingPoints point); void (*load_sub) (struct hplugin *plugin); |