diff options
author | Haruna <haru@dotalux.com> | 2014-11-14 21:24:36 +0100 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2014-11-14 21:24:36 +0100 |
commit | 1ea115f7d795f8f5dea429172d7b4ab8f2b14d18 (patch) | |
tree | 2d2fb2fbcb10398eef1c1ad09b68bf579bccc25b /src/plugins | |
parent | 2e6d71cf134c1415a626cb1adddcc30428d467b5 (diff) | |
parent | 194c9106c0b2009ee81574565bea88fd67019659 (diff) | |
download | hercules-1ea115f7d795f8f5dea429172d7b4ab8f2b14d18.tar.gz hercules-1ea115f7d795f8f5dea429172d7b4ab8f2b14d18.tar.bz2 hercules-1ea115f7d795f8f5dea429172d7b4ab8f2b14d18.tar.xz hercules-1ea115f7d795f8f5dea429172d7b4ab8f2b14d18.zip |
Merge pull request #391 from 4144/addscriptdeprecated
Add plugins "function" addScriptCommandDeprecated
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_map.Hooks.inc | 12 |
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___; |