• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] y_hooks v4(ish)
#8
Just got this working:



PHP Code:
HOOK_NATIVE__ printf(const str[], GLOBAL_TAG_TYPES:...)

{

    
printf("a__ = %d"a__);

    
printf("f__ = %d"f__);

    
printf("(%s, %d...)"strnumargs() - 3);

    
// Need to make this nicer - it won't currently work if any other parameter

    // has an underscore in.  This secretly adjusts the number given to ` 2` to

    // account for the two extra parameters.

    
return continue(str___(1));





There's still a little way to go automatically detecting and installing the hooks, but the hard part is done.
  Reply


Messages In This Thread
y_hooks v4(ish) - by Y_Less - 2019-05-19, 02:57 PM
RE: y_hooks v4(ish) - by JustMichael - 2019-05-21, 11:57 AM
RE: y_hooks v4(ish) - by Y_Less - 2019-05-21, 12:56 PM
RE: y_hooks v4(ish) - by JustMichael - 2019-05-21, 01:25 PM
RE: y_hooks v4(ish) - by ohmios - 2019-05-21, 02:02 PM
RE: y_hooks v4(ish) - by Y_Less - 2019-05-21, 02:28 PM
RE: y_hooks v4(ish) - by Kar - 2019-05-21, 06:44 PM
RE: y_hooks v4(ish) - by Y_Less - 2019-06-01, 01:17 AM
RE: y_hooks v4(ish) - by Y_Less - 2019-06-01, 02:37 AM
RE: y_hooks v4(ish) - by JustMichael - 2019-06-01, 03:37 PM
RE: y_hooks v4(ish) - by Y_Less - 2019-06-02, 11:56 AM

Forum Jump: