summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2013-11-11 03:06:41 +0100
committerHerculesWSAPI <Hercules@efficiently.awesome>2013-11-11 03:06:41 +0100
commitdef35a112daab37d502811883b0c9d8b6c4be31e (patch)
tree8a6f991572a6f00f291ddabacdfd02420aef28f9
parentce6c4c63a3a5c1516780f2eac978d02820a8dc0b (diff)
downloadhercules-def35a112daab37d502811883b0c9d8b6c4be31e.tar.gz
hercules-def35a112daab37d502811883b0c9d8b6c4be31e.tar.bz2
hercules-def35a112daab37d502811883b0c9d8b6c4be31e.tar.xz
hercules-def35a112daab37d502811883b0c9d8b6c4be31e.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
-rw-r--r--src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc8
-rw-r--r--src/plugins/HPMHooking/HPMHooking.HookingPoints.inc2
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Hooks.inc51
3 files changed, 61 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
index 13457ec63..fc3163972 100644
--- a/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
+++ b/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
@@ -4189,6 +4189,10 @@ struct {
struct HPMHookPoint *HP_script_run_func_post;
struct HPMHookPoint *HP_script_getfuncname_pre;
struct HPMHookPoint *HP_script_getfuncname_post;
+ struct HPMHookPoint *HP_script_local_casecheck_add_str_pre;
+ struct HPMHookPoint *HP_script_local_casecheck_add_str_post;
+ struct HPMHookPoint *HP_script_local_casecheck_clear_pre;
+ struct HPMHookPoint *HP_script_local_casecheck_clear_post;
struct HPMHookPoint *HP_searchstore_open_pre;
struct HPMHookPoint *HP_searchstore_open_post;
struct HPMHookPoint *HP_searchstore_query_pre;
@@ -9132,6 +9136,10 @@ struct {
int HP_script_run_func_post;
int HP_script_getfuncname_pre;
int HP_script_getfuncname_post;
+ int HP_script_local_casecheck_add_str_pre;
+ int HP_script_local_casecheck_add_str_post;
+ int HP_script_local_casecheck_clear_pre;
+ int HP_script_local_casecheck_clear_post;
int HP_searchstore_open_pre;
int HP_searchstore_open_post;
int HP_searchstore_query_pre;
diff --git a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
index c5a2f1dc6..446fcbd18 100644
--- a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
+++ b/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
@@ -2128,6 +2128,8 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(script->cleanfloor_sub, HP_script_cleanfloor_sub) },
{ HP_POP(script->run_func, HP_script_run_func) },
{ HP_POP(script->getfuncname, HP_script_getfuncname) },
+ { HP_POP(script->local_casecheck_add_str, HP_script_local_casecheck_add_str) },
+ { HP_POP(script->local_casecheck_clear, HP_script_local_casecheck_clear) },
/* searchstore */
{ HP_POP(searchstore->open, HP_searchstore_open) },
{ HP_POP(searchstore->query, HP_searchstore_query) },
diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
index 555d893d0..354e13cd8 100644
--- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
@@ -54138,6 +54138,57 @@ const char* HP_script_getfuncname(struct script_state *st) {
}
return retVal___;
}
+bool HP_script_local_casecheck_add_str(const char *p, int h) {
+ int hIndex = 0;
+ bool retVal___ = false;
+ if( HPMHooks.count.HP_script_local_casecheck_add_str_pre ) {
+ bool (*preHookFunc) (const char *p, int *h);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_script_local_casecheck_add_str_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_script_local_casecheck_add_str_pre[hIndex].func;
+ retVal___ = preHookFunc(p, &h);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.script.local_casecheck_add_str(p, h);
+ }
+ if( HPMHooks.count.HP_script_local_casecheck_add_str_post ) {
+ bool (*postHookFunc) (bool retVal___, const char *p, int *h);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_script_local_casecheck_add_str_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_script_local_casecheck_add_str_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, p, &h);
+ }
+ }
+ return retVal___;
+}
+void HP_script_local_casecheck_clear(void) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_script_local_casecheck_clear_pre ) {
+ void (*preHookFunc) (void);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_script_local_casecheck_clear_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_script_local_casecheck_clear_pre[hIndex].func;
+ preHookFunc();
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.script.local_casecheck_clear();
+ }
+ if( HPMHooks.count.HP_script_local_casecheck_clear_post ) {
+ void (*postHookFunc) (void);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_script_local_casecheck_clear_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_script_local_casecheck_clear_post[hIndex].func;
+ postHookFunc();
+ }
+ }
+ return;
+}
/* searchstore */
bool HP_searchstore_open(struct map_session_data *sd, unsigned int uses, unsigned short effect) {
int hIndex = 0;