@@ -34199,29 +34199,56 @@ bool HP_guild_read_guildskill_tree_db(char *split[], int columns, int current) {
3419934199 }
3420034200 return retVal___;
3420134201}
34202- bool HP_guild_read_castledb(char *str[], int columns, int current ) {
34202+ bool HP_guild_read_castledb_libconfig(void ) {
3420334203 int hIndex = 0;
3420434204 bool retVal___ = false;
34205- if (HPMHooks.count.HP_guild_read_castledb_pre > 0) {
34206- bool (*preHookFunc) (char **str[], int *columns, int *current );
34205+ if (HPMHooks.count.HP_guild_read_castledb_libconfig_pre > 0) {
34206+ bool (*preHookFunc) (void );
3420734207 *HPMforce_return = false;
34208- for (hIndex = 0; hIndex < HPMHooks.count.HP_guild_read_castledb_pre ; hIndex++) {
34209- preHookFunc = HPMHooks.list.HP_guild_read_castledb_pre [hIndex].func;
34210- retVal___ = preHookFunc(&str, &columns, ¤t );
34208+ for (hIndex = 0; hIndex < HPMHooks.count.HP_guild_read_castledb_libconfig_pre ; hIndex++) {
34209+ preHookFunc = HPMHooks.list.HP_guild_read_castledb_libconfig_pre [hIndex].func;
34210+ retVal___ = preHookFunc();
3421134211 }
3421234212 if (*HPMforce_return) {
3421334213 *HPMforce_return = false;
3421434214 return retVal___;
3421534215 }
3421634216 }
3421734217 {
34218- retVal___ = HPMHooks.source.guild.read_castledb(str, columns, current );
34218+ retVal___ = HPMHooks.source.guild.read_castledb_libconfig( );
3421934219 }
34220- if (HPMHooks.count.HP_guild_read_castledb_post > 0) {
34221- bool (*postHookFunc) (bool retVal___, char *str[], int columns, int current);
34222- for (hIndex = 0; hIndex < HPMHooks.count.HP_guild_read_castledb_post; hIndex++) {
34223- postHookFunc = HPMHooks.list.HP_guild_read_castledb_post[hIndex].func;
34224- retVal___ = postHookFunc(retVal___, str, columns, current);
34220+ if (HPMHooks.count.HP_guild_read_castledb_libconfig_post > 0) {
34221+ bool (*postHookFunc) (bool retVal___);
34222+ for (hIndex = 0; hIndex < HPMHooks.count.HP_guild_read_castledb_libconfig_post; hIndex++) {
34223+ postHookFunc = HPMHooks.list.HP_guild_read_castledb_libconfig_post[hIndex].func;
34224+ retVal___ = postHookFunc(retVal___);
34225+ }
34226+ }
34227+ return retVal___;
34228+ }
34229+ bool HP_guild_read_castledb_libconfig_sub(struct config_setting_t *it, int idx, const char *source) {
34230+ int hIndex = 0;
34231+ bool retVal___ = false;
34232+ if (HPMHooks.count.HP_guild_read_castledb_libconfig_sub_pre > 0) {
34233+ bool (*preHookFunc) (struct config_setting_t **it, int *idx, const char **source);
34234+ *HPMforce_return = false;
34235+ for (hIndex = 0; hIndex < HPMHooks.count.HP_guild_read_castledb_libconfig_sub_pre; hIndex++) {
34236+ preHookFunc = HPMHooks.list.HP_guild_read_castledb_libconfig_sub_pre[hIndex].func;
34237+ retVal___ = preHookFunc(&it, &idx, &source);
34238+ }
34239+ if (*HPMforce_return) {
34240+ *HPMforce_return = false;
34241+ return retVal___;
34242+ }
34243+ }
34244+ {
34245+ retVal___ = HPMHooks.source.guild.read_castledb_libconfig_sub(it, idx, source);
34246+ }
34247+ if (HPMHooks.count.HP_guild_read_castledb_libconfig_sub_post > 0) {
34248+ bool (*postHookFunc) (bool retVal___, struct config_setting_t *it, int idx, const char *source);
34249+ for (hIndex = 0; hIndex < HPMHooks.count.HP_guild_read_castledb_libconfig_sub_post; hIndex++) {
34250+ postHookFunc = HPMHooks.list.HP_guild_read_castledb_libconfig_sub_post[hIndex].func;
34251+ retVal___ = postHookFunc(retVal___, it, idx, source);
3422534252 }
3422634253 }
3422734254 return retVal___;
0 commit comments