From ac7152ddb48eb0e852db011746da9ff282074175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Israelson?= <57065102+israpps@users.noreply.github.com> Date: Sun, 28 Apr 2024 19:05:24 -0300 Subject: [PATCH] [dogbait] use blue led control subCMD from mechacon factory test CMD --- iop/system2x6/dogbait/src/main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/iop/system2x6/dogbait/src/main.c b/iop/system2x6/dogbait/src/main.c index 4ab02a0da3ae..9932f5331da5 100644 --- a/iop/system2x6/dogbait/src/main.c +++ b/iop/system2x6/dogbait/src/main.c @@ -12,7 +12,7 @@ IRX_ID(MODNAME, MAJOR, MINOR); char rdata[16]; -char wdata[1] = {0x0}; +char wdata[1] = {0x42}; //the loop waiting was made to mirror what rom0:DAEMON did void bait(void*) @@ -20,13 +20,12 @@ void bait(void*) int x; printf("DOGBAIT v%d.%d by El_isra\n", MAJOR, MINOR); do { - wdata[0] = !wdata[0]; #ifdef DEBUG x = #endif //thanks uyjulian for the idea. arcade CDVDMAN has the blue led control export stubbed so directly calling the CMD was the only choice - sceCdApplySCmd(0x1c, wdata, sizeof(wdata), rdata); - DPRINTF("sceCdApplySCmd(0x1c, %x) ret %d\n", wdata[0], x); + sceCdApplySCmd(0x03, wdata, sizeof(wdata), rdata); + DPRINTF("sceCdApplySCmd(0x03, %x) ret %d\n", wdata[0], x); x = 0x3c; while (0 < x) { DelayThread(1000000);