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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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