Jump to content
  • 0
Sign in to follow this  
AnnieRuru

HPM Pre-Hook allows to not returning to original function

Question

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

3 answers to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.