CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
CabConModding
Short questions, quick answers
were are all sprx dev's @
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="noahisog" data-source="post: 40221" data-attributes="member: 26852"><p>[SPOILER="Code"][CODE]#include <cellstatus.h></p><p>#include <sys/prx.h></p><p></p><p>#include <sys/types.h></p><p>#include <netdb.h></p><p>#include <sys/types.h></p><p>#include <cell/cell_fs.h></p><p>#include <sys/stat.h></p><p>#include <cellstatus.h></p><p>#include <sys/prx.h></p><p>#include <sys/ppu_thread.h></p><p>#include <string.h></p><p>#include <sys/memory.h></p><p>#include <sys/timer.h></p><p>#include <sys/process.h></p><p>#include <ppu_intrinsics.h></p><p>#include <stdarg.h></p><p>#include <stdio.h></p><p>#include <sysutil\sysutil_msgdialog.h></p><p>#include <sysutil\sysutil_oskdialog.h></p><p>#include <sysutil\sysutil_oskdialog_ext.h></p><p>#include <cstdlib></p><p>#include <math.h></p><p></p><p>#include <sys/types.h></p><p>#include <sys/types.h></p><p>#include <cell/cell_fs.h></p><p>#include <sys/stat.h></p><p></p><p>#include <tgmath.h></p><p>#include "PS3.h"</p><p>#include "Addresses.h"</p><p>#include "Structures.h"</p><p>#include "TOC.h"</p><p>#include "Vars.h"</p><p>#include "Huds.h"</p><p>#include "Funcs.h"</p><p>#include "Menu_Base.h"</p><p></p><p>void paintHook(int x, int xx) {</p><p> Menu_PaintAll_Stub(x, xx);</p><p> if (getBool("cl_ingame")) { //Checks if ingame</p><p> if (var.isOpen) store();</p><p> var.tickTock += 1;</p><p> if (var.tickTock > 20) { //20 = time inbetween pressing buttons (Lower = faster)</p><p> //if (detect(R3)) openClose();</p><p> if (detect(R3) && detect(UP) && !var.isOpen) {</p><p> openClose();</p><p> }</p><p> else if (detect(O) && var.isOpen)</p><p> {</p><p> openClose();</p><p> }</p><p> else if (detect(UP) && var.isOpen) {</p><p> var.scroll--;</p><p> if (var.scroll < 0) var.scroll = var.maxScroll;</p><p> var.tickTock = 0; //resets the button timer</p><p> }</p><p> else if (detect(DOWN) && var.isOpen) {</p><p> var.scroll++;</p><p> if (var.scroll > var.maxScroll) var.scroll = 0;</p><p> var.tickTock = 0; //resets the button timer</p><p> }</p><p> else if (detect(LEFT) && var.isOpen) {</p><p> execute();</p><p> var.tickTock = 0; //resets the button timer</p><p> }</p><p> }</p><p> }</p><p> else</p><p> {</p><p> if (var.isOpen) store1();</p><p> var.tickTock += 1;</p><p> if (var.tickTock > 20) { //20 = time inbetween pressing buttons (Lower = faster)</p><p> if (detect(R3) && !var.isOpen) {</p><p> openClose();</p><p> }</p><p> else if (detect(O) && var.isOpen)</p><p> {</p><p> openClose();</p><p> }</p><p> else if (detect(UP) && var.isOpen) {</p><p> var.scroll--;</p><p> if (var.scroll < 0) var.scroll = var.maxScroll;</p><p> var.tickTock = 0; //resets the button timer</p><p> }</p><p> else if (detect(DOWN) && var.isOpen) {</p><p> var.scroll++;</p><p> if (var.scroll > var.maxScroll) var.scroll = 0;</p><p> var.tickTock = 0; //resets the button timer</p><p> }</p><p> else if (detect(LEFT) && var.isOpen) {</p><p> execute();</p><p> var.tickTock = 0; //resets the button timer</p><p> }</p><p> }</p><p> }</p><p>}</p><p></p><p>void my_dialog2(int button, void *userdata)</p><p>{</p><p> switch (button) {</p><p> case CELL_MSGDIALOG_BUTTON_OK:</p><p></p><p> case CELL_MSGDIALOG_BUTTON_NONE:</p><p></p><p> case CELL_MSGDIALOG_BUTTON_ESCAPE:</p><p> break;</p><p> default:</p><p> break;</p><p> }</p><p>}</p><p></p><p>void LoadMsg() {</p><p> cellMsgDialogOpen(1, "Welcome to Noah's SPRX\n\nCredits\ncabconmodding.com", my_dialog2, (void*)0x0000aaab, NULL);</p><p> Init();</p><p>}</p><p></p><p>void Thread(uint64_t nothing) {</p><p> sleep(10000);</p><p> LoadMsg();</p><p> sys_ppu_thread_exit(nothing);</p><p>}</p><p></p><p>extern "C" int _Bo2NonHost_prx_entry(void)</p><p>{</p><p> hookFunctionStart((int)0x3971A0, (int)Menu_PaintAll_Stub, (int)paintHook); //hooks Menu_PaintAll</p><p> return SYS_PRX_RESIDENT;</p><p>}[/CODE][/SPOILER]</p></blockquote><p></p>
[QUOTE="noahisog, post: 40221, member: 26852"] [SPOILER="Code"][CODE]#include <cellstatus.h> #include <sys/prx.h> #include <sys/types.h> #include <netdb.h> #include <sys/types.h> #include <cell/cell_fs.h> #include <sys/stat.h> #include <cellstatus.h> #include <sys/prx.h> #include <sys/ppu_thread.h> #include <string.h> #include <sys/memory.h> #include <sys/timer.h> #include <sys/process.h> #include <ppu_intrinsics.h> #include <stdarg.h> #include <stdio.h> #include <sysutil\sysutil_msgdialog.h> #include <sysutil\sysutil_oskdialog.h> #include <sysutil\sysutil_oskdialog_ext.h> #include <cstdlib> #include <math.h> #include <sys/types.h> #include <sys/types.h> #include <cell/cell_fs.h> #include <sys/stat.h> #include <tgmath.h> #include "PS3.h" #include "Addresses.h" #include "Structures.h" #include "TOC.h" #include "Vars.h" #include "Huds.h" #include "Funcs.h" #include "Menu_Base.h" void paintHook(int x, int xx) { Menu_PaintAll_Stub(x, xx); if (getBool("cl_ingame")) { //Checks if ingame if (var.isOpen) store(); var.tickTock += 1; if (var.tickTock > 20) { //20 = time inbetween pressing buttons (Lower = faster) //if (detect(R3)) openClose(); if (detect(R3) && detect(UP) && !var.isOpen) { openClose(); } else if (detect(O) && var.isOpen) { openClose(); } else if (detect(UP) && var.isOpen) { var.scroll--; if (var.scroll < 0) var.scroll = var.maxScroll; var.tickTock = 0; //resets the button timer } else if (detect(DOWN) && var.isOpen) { var.scroll++; if (var.scroll > var.maxScroll) var.scroll = 0; var.tickTock = 0; //resets the button timer } else if (detect(LEFT) && var.isOpen) { execute(); var.tickTock = 0; //resets the button timer } } } else { if (var.isOpen) store1(); var.tickTock += 1; if (var.tickTock > 20) { //20 = time inbetween pressing buttons (Lower = faster) if (detect(R3) && !var.isOpen) { openClose(); } else if (detect(O) && var.isOpen) { openClose(); } else if (detect(UP) && var.isOpen) { var.scroll--; if (var.scroll < 0) var.scroll = var.maxScroll; var.tickTock = 0; //resets the button timer } else if (detect(DOWN) && var.isOpen) { var.scroll++; if (var.scroll > var.maxScroll) var.scroll = 0; var.tickTock = 0; //resets the button timer } else if (detect(LEFT) && var.isOpen) { execute(); var.tickTock = 0; //resets the button timer } } } } void my_dialog2(int button, void *userdata) { switch (button) { case CELL_MSGDIALOG_BUTTON_OK: case CELL_MSGDIALOG_BUTTON_NONE: case CELL_MSGDIALOG_BUTTON_ESCAPE: break; default: break; } } void LoadMsg() { cellMsgDialogOpen(1, "Welcome to Noah's SPRX\n\nCredits\ncabconmodding.com", my_dialog2, (void*)0x0000aaab, NULL); Init(); } void Thread(uint64_t nothing) { sleep(10000); LoadMsg(); sys_ppu_thread_exit(nothing); } extern "C" int _Bo2NonHost_prx_entry(void) { hookFunctionStart((int)0x3971A0, (int)Menu_PaintAll_Stub, (int)paintHook); //hooks Menu_PaintAll return SYS_PRX_RESIDENT; }[/CODE][/SPOILER] [/QUOTE]
Name
Verification
Post reply
Forums
CabConModding
Short questions, quick answers
were are all sprx dev's @
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top