Skip to content

Commit 06b028c

Browse files
authored
Update main.c
1 parent c0d72af commit 06b028c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main.c

+10
Original file line numberDiff line numberDiff line change
@@ -2423,10 +2423,20 @@ int i, d;
24232423
//Increase the FILEIO R/W buffer size to reduce overhead.
24242424
fileXioSetRWBufferSize(128 * 1024);
24252425
DPRINTF("Initializing mc rpc\n");
2426+
#ifdef SUPPORT_SYSTEM_2X6
2427+
if (exist("rom0:DAEMON")) {
2428+
DPRINTF("found 'rom0:DAEMON', initializing XMC RPC server instead of MC\n");
2429+
mcInit(MC_TYPE_XMC);
2430+
} else {
2431+
DPRINTF("'rom0:DAEMON' not found. initializing MC RPC\n");
2432+
mcInit(MC_TYPE_MC);
2433+
}
2434+
#else
24262435
#ifdef HOMEBREW_SIO2MAN
24272436
mcInit(MC_TYPE_XMC);
24282437
#else
24292438
mcInit(MC_TYPE_MC);
2439+
#endif
24302440
#endif
24312441
DPRINTF("RESET FINISHED\n");
24322442
// setupPad();

0 commit comments

Comments
 (0)