Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Original Thread: http://www.nextgenupdate.com/forums/ps3-cheats-customization/756360-release-sprx-printf-function.html
- 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
- */
- void printf(int n,...)
- {
- void* lol;
- va_list a;
- va_start(a,n);
- lol = va_arg(a,void*);
- uint32_t len;
- system_call_4(403, 0, (uint64_t)lol, 32, (uint64_t) &len);
- va_end(a);
- }
- /*use like:
- *printf:
- *usage: print values to the console
- *parameters:
- *first: number of values to be printed
- *values to be printed(__VA_ARGS__)
- */
- printf(3,"ayy lmao","( ͡° ͜ʖ ͡°)",4);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement