Skip to content

Commit d3d8215

Browse files
authored
Update main.c
1 parent 6f0f201 commit d3d8215

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

  • iop/system2x6/dogbait/src

iop/system2x6/dogbait/src/main.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
#include "irx_imports.h"
22

33
#define MODNAME "dogbait"
4+
#define MAJOR 1
5+
#define MINOR 0
6+
47
#ifdef DEBUG
58
#define DPRINTF(fmt, x...) printf(MODNAME ": " fmt, ##x)
69
#else
710
#define DPRINTF(x...)
811
#endif
912

10-
IRX_ID(MODNAME, 2, 11);
11-
//thanks uyjulian for the idea
13+
IRX_ID(MODNAME, MAJOR, MINOR);
1214
char rdata[16];
1315
char wdata[2] = {0x42, (char)(1 << 8)};
1416

1517
//the loop waiting was made to mirror what rom0:DAEMON did
1618
void bait(void*)
1719
{
1820
int x;
19-
printf("fake check card routine start\n");
21+
printf("DOGBAIT v%d.%d by El_isra\n", MAJOR, MINOR);
2022
do {
2123
#ifdef DEBUG
2224
x =
2325
#endif
26+
//thanks uyjulian for the idea. arcade CDVDMAN has the blue led control export stubbed so directly calling the CMD was the only choice
2427
sceCdApplySCmd(0x1c, wdata, sizeof(wdata), rdata);
2528
DPRINTF("sceCdApplySCmd() ret %d\n", x);
2629
x = 0x3c;

0 commit comments

Comments
 (0)