Advertisement
BaSs_HaXoR

[RELEASE] [SPRX] printf() function (Milky4444)

Aug 14th, 2014
681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.83 KB | None | 0 0
  1. /*
  2. Original Thread: http://www.nextgenupdate.com/forums/ps3-cheats-customization/756360-release-sprx-printf-function.html
  3.  
  4. hi ngu, i was recently testing something and was getting errors so i decided to make a printf because its very useful for debugging and ik theres the console_write function by shark but his only supports 1string parmeter so this is pretty much a revamp i gusse cause it uses the same sys call... anyways here it is  
  5. */
  6. void printf(int n,...)
  7. {
  8.     void* lol;
  9.     va_list a;
  10.     va_start(a,n);
  11.     lol = va_arg(a,void*);
  12.         uint32_t len;
  13.         system_call_4(403, 0, (uint64_t)lol, 32, (uint64_t) &len);
  14.     va_end(a);
  15. }
  16. /*use like:
  17. *printf:
  18. *usage: print values to the console
  19. *parameters:
  20.   *first: number of values to be printed
  21.    *values to be printed(__VA_ARGS__)
  22. */
  23. printf(3,"ayy lmao","( ͡° ͜ʖ ͡°)",4);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement