HPM Pre-Hook allows to not returning to original function

AnnieRuru

~~Cute~Cute~Scripter~~
Messages
1,677
Points
0
Location
your next door ~
Discord
AnnieRuru#1609
Github
AnnieRuru
Emulator
Client Version
2019-05-30aRagexeRE
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

 
HAHAHA, yeah i know that feeling, that's why i'm reading ind's plugins as plugin document hahaha

 
Back
Top