We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0bcd41 commit 75c18b7Copy full SHA for 75c18b7
iop/system2x6/dogbait/src/main.c
@@ -12,20 +12,21 @@
12
13
IRX_ID(MODNAME, MAJOR, MINOR);
14
char rdata[16];
15
-char wdata[2] = {0x42, (char)(1 << 8)};
+char wdata[1] = {0x0};
16
17
//the loop waiting was made to mirror what rom0:DAEMON did
18
void bait(void*)
19
{
20
int x;
21
printf("DOGBAIT v%d.%d by El_isra\n", MAJOR, MINOR);
22
do {
23
+ wdata[0] = !wdata[0];
24
#ifdef DEBUG
25
x =
26
#endif
27
//thanks uyjulian for the idea. arcade CDVDMAN has the blue led control export stubbed so directly calling the CMD was the only choice
28
sceCdApplySCmd(0x1c, wdata, sizeof(wdata), rdata);
- DPRINTF("sceCdApplySCmd() ret %d\n", x);
29
+ DPRINTF("sceCdApplySCmd(0x1c, %x) ret %d\n", wdata[0], x);
30
x = 0x3c;
31
while (0 < x) {
32
DelayThread(1000000);
0 commit comments