Skip to content

Commit

Permalink
[dogbait] use blue led control subCMD from mechacon factory test CMD
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps authored Apr 28, 2024
1 parent 01af49e commit ac7152d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions iop/system2x6/dogbait/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,20 @@

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*)
{
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);
Expand Down

0 comments on commit ac7152d

Please sign in to comment.