- 0
Sign in to follow this
Followers
0
HPM Pre-Hook allows to not returning to original function
Asked by
AnnieRuru
-
Recently Browsing 0 members
No registered users viewing this page.
http://herc.ws/board/topic/4812-official-banker/?p=31162
that method is actually quite funny, like a cheap hack
I can think of 2 methods to actually solve this
1. allow overwrite the function completely
maybe something like addHookoverwrite("original->function",new_fuction)
the problem is if the are more than 1 plugin overwrite the same function, only the later one take place
but this might be feast-able for certain condition that needs to read in the middle of the function
2. add a new plugin command like noreturn;
currently all pre-Hook will ALWAYS return to the "original->function"
maybe a new plugin command like noreturn; can instead of return to "original->function", it will return to previous function instead
Share this post
Link to post
Share on other sites