summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-14 13:57:38 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-14 13:57:38 +0300
commit194c9106c0b2009ee81574565bea88fd67019659 (patch)
tree867b959cbdc5a873e59b505c020cda1a7b703905 /src/plugins/HPMHooking
parent8cbdcf9c92c8e9af767afd666733227dd68dddd3 (diff)
downloadhercules-194c9106c0b2009ee81574565bea88fd67019659.tar.gz
hercules-194c9106c0b2009ee81574565bea88fd67019659.tar.bz2
hercules-194c9106c0b2009ee81574565bea88fd67019659.tar.xz
hercules-194c9106c0b2009ee81574565bea88fd67019659.zip
Update HPM hooks.
Diffstat (limited to 'src/plugins/HPMHooking')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index 102c486d9..57a609024 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -54219,15 +54219,15 @@ void HP_script_warning(const char *src, const char *file, int start_line, const
}
return;
}
-bool HP_script_addScript(char *name, char *args, bool ( *func ) (struct script_state *st)) {
+bool HP_script_addScript(char *name, char *args, bool ( *func ) (struct script_state *st), bool isDeprecated) {
int hIndex = 0;
bool retVal___ = false;
if( HPMHooks.count.HP_script_addScript_pre ) {
- bool (*preHookFunc) (char *name, char *args, bool ( *func ) (struct script_state *st));
+ bool (*preHookFunc) (char *name, char *args, bool ( *func ) (struct script_state *st), bool *isDeprecated);
*HPMforce_return = false;
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_addScript_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_script_addScript_pre[hIndex].func;
- retVal___ = preHookFunc(name, args, func);
+ retVal___ = preHookFunc(name, args, func, &isDeprecated);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
@@ -54235,13 +54235,13 @@ bool HP_script_addScript(char *name, char *args, bool ( *func ) (struct script_s
}
}
{
- retVal___ = HPMHooks.source.script.addScript(name, args, func);
+ retVal___ = HPMHooks.source.script.addScript(name, args, func, isDeprecated);
}
if( HPMHooks.count.HP_script_addScript_post ) {
- bool (*postHookFunc) (bool retVal___, char *name, char *args, bool ( *func ) (struct script_state *st));
+ bool (*postHookFunc) (bool retVal___, char *name, char *args, bool ( *func ) (struct script_state *st), bool *isDeprecated);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_addScript_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_script_addScript_post[hIndex].func;
- retVal___ = postHookFunc(retVal___, name, args, func);
+ retVal___ = postHookFunc(retVal___, name, args, func, &isDeprecated);
}
}
return retVal___;