@@ -10116,6 +10116,58 @@ bool HP_inter_storage_retrieve_bound_items(int char_id, int account_id, int guil
1011610116 return retVal___;
1011710117}
1011810118/* libconfig_interface */
10119+ void HP_libconfig_set_db_path(const char *db_path) {
10120+ int hIndex = 0;
10121+ if (HPMHooks.count.HP_libconfig_set_db_path_pre > 0) {
10122+ void (*preHookFunc) (const char **db_path);
10123+ *HPMforce_return = false;
10124+ for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_db_path_pre; hIndex++) {
10125+ preHookFunc = HPMHooks.list.HP_libconfig_set_db_path_pre[hIndex].func;
10126+ preHookFunc(&db_path);
10127+ }
10128+ if (*HPMforce_return) {
10129+ *HPMforce_return = false;
10130+ return;
10131+ }
10132+ }
10133+ {
10134+ HPMHooks.source.libconfig.set_db_path(db_path);
10135+ }
10136+ if (HPMHooks.count.HP_libconfig_set_db_path_post > 0) {
10137+ void (*postHookFunc) (const char *db_path);
10138+ for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_db_path_post; hIndex++) {
10139+ postHookFunc = HPMHooks.list.HP_libconfig_set_db_path_post[hIndex].func;
10140+ postHookFunc(db_path);
10141+ }
10142+ }
10143+ return;
10144+ }
10145+ void HP_libconfig_format_db_path(const char *filename, char *path_buf, int buffer_len) {
10146+ int hIndex = 0;
10147+ if (HPMHooks.count.HP_libconfig_format_db_path_pre > 0) {
10148+ void (*preHookFunc) (const char **filename, char **path_buf, int *buffer_len);
10149+ *HPMforce_return = false;
10150+ for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_format_db_path_pre; hIndex++) {
10151+ preHookFunc = HPMHooks.list.HP_libconfig_format_db_path_pre[hIndex].func;
10152+ preHookFunc(&filename, &path_buf, &buffer_len);
10153+ }
10154+ if (*HPMforce_return) {
10155+ *HPMforce_return = false;
10156+ return;
10157+ }
10158+ }
10159+ {
10160+ HPMHooks.source.libconfig.format_db_path(filename, path_buf, buffer_len);
10161+ }
10162+ if (HPMHooks.count.HP_libconfig_format_db_path_post > 0) {
10163+ void (*postHookFunc) (const char *filename, char *path_buf, int buffer_len);
10164+ for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_format_db_path_post; hIndex++) {
10165+ postHookFunc = HPMHooks.list.HP_libconfig_format_db_path_post[hIndex].func;
10166+ postHookFunc(filename, path_buf, buffer_len);
10167+ }
10168+ }
10169+ return;
10170+ }
1011910171int HP_libconfig_read(struct config_t *config, FILE *stream) {
1012010172 int hIndex = 0;
1012110173 int retVal___ = 0;
@@ -16415,6 +16467,60 @@ int HP_mapif_parse_ClanMemberCount(int fd, int clan_id, int kick_interval) {
1641516467 return retVal___;
1641616468}
1641716469/* mapindex_interface */
16470+ bool HP_mapindex_config_read_dbpath(const char *filename, const struct config_t *config) {
16471+ int hIndex = 0;
16472+ bool retVal___ = false;
16473+ if (HPMHooks.count.HP_mapindex_config_read_dbpath_pre > 0) {
16474+ bool (*preHookFunc) (const char **filename, const struct config_t **config);
16475+ *HPMforce_return = false;
16476+ for (hIndex = 0; hIndex < HPMHooks.count.HP_mapindex_config_read_dbpath_pre; hIndex++) {
16477+ preHookFunc = HPMHooks.list.HP_mapindex_config_read_dbpath_pre[hIndex].func;
16478+ retVal___ = preHookFunc(&filename, &config);
16479+ }
16480+ if (*HPMforce_return) {
16481+ *HPMforce_return = false;
16482+ return retVal___;
16483+ }
16484+ }
16485+ {
16486+ retVal___ = HPMHooks.source.mapindex.config_read_dbpath(filename, config);
16487+ }
16488+ if (HPMHooks.count.HP_mapindex_config_read_dbpath_post > 0) {
16489+ bool (*postHookFunc) (bool retVal___, const char *filename, const struct config_t *config);
16490+ for (hIndex = 0; hIndex < HPMHooks.count.HP_mapindex_config_read_dbpath_post; hIndex++) {
16491+ postHookFunc = HPMHooks.list.HP_mapindex_config_read_dbpath_post[hIndex].func;
16492+ retVal___ = postHookFunc(retVal___, filename, config);
16493+ }
16494+ }
16495+ return retVal___;
16496+ }
16497+ bool HP_mapindex_config_read(void) {
16498+ int hIndex = 0;
16499+ bool retVal___ = false;
16500+ if (HPMHooks.count.HP_mapindex_config_read_pre > 0) {
16501+ bool (*preHookFunc) (void);
16502+ *HPMforce_return = false;
16503+ for (hIndex = 0; hIndex < HPMHooks.count.HP_mapindex_config_read_pre; hIndex++) {
16504+ preHookFunc = HPMHooks.list.HP_mapindex_config_read_pre[hIndex].func;
16505+ retVal___ = preHookFunc();
16506+ }
16507+ if (*HPMforce_return) {
16508+ *HPMforce_return = false;
16509+ return retVal___;
16510+ }
16511+ }
16512+ {
16513+ retVal___ = HPMHooks.source.mapindex.config_read();
16514+ }
16515+ if (HPMHooks.count.HP_mapindex_config_read_post > 0) {
16516+ bool (*postHookFunc) (bool retVal___);
16517+ for (hIndex = 0; hIndex < HPMHooks.count.HP_mapindex_config_read_post; hIndex++) {
16518+ postHookFunc = HPMHooks.list.HP_mapindex_config_read_post[hIndex].func;
16519+ retVal___ = postHookFunc(retVal___);
16520+ }
16521+ }
16522+ return retVal___;
16523+ }
1641816524int HP_mapindex_init(void) {
1641916525 int hIndex = 0;
1642016526 int retVal___ = 0;
0 commit comments