Skip to content

Commit

Permalink
fix mc rpc bind
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps committed Feb 21, 2024
1 parent d1e0c42 commit 6b39c2d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2443,12 +2443,17 @@ int i, d;
//Increase the FILEIO R/W buffer size to reduce overhead.
fileXioSetRWBufferSize(128 * 1024);
DPRINTF("Initializing MCMAN RPC\n");
#ifdef HOMEBREW_SIO2MAN
#ifndef SUPPORT_SYSTEM_2X6
#ifdef HOMEBREW_SIO2MAN
DPRINTF("mcInit(MC_TYPE_XMC)..");
mcInit(MC_TYPE_XMC);
#else
#else
DPRINTF("mcInit(MC_TYPE_MC)..");
mcInit(MC_TYPE_MC);
#endif
#else
DPRINTF("mcInit(MC_TYPE_XMC)..");
mcInit(MC_TYPE_XMC);
#endif
DPRINTF(".done!\n");
//setupPad();
Expand Down
2 changes: 2 additions & 0 deletions src/pad.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ int setupPad(void)
{
int ret, i, port, state, modes;

DPRINTF("padInit(0)..");
padInit(0);
DPRINTF(".done!\n");

for (port = 0; port < 2; port++) {
padtype_t[port] = 0; //Assume that we don't have a proper PS2 controller
Expand Down
6 changes: 6 additions & 0 deletions src/pad_ds34.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,15 @@ int setupPad(void)
{
int ret, i, port, state, modes;

DPRINTF("padInit(0)..");
padInit(0);
DPRINTF(".done!\n");
DPRINTF("ds34usb_init()..");
ds34usb_init();
DPRINTF(".done!\n");
DPRINTF("ds34bt_init()..");
ds34bt_init();
DPRINTF(".done!\n");

for (port = 0; port < 2; port++) {
padtype_t[port] = 0; // Assume that we don't have a proper PS2 controller
Expand Down

0 comments on commit 6b39c2d

Please sign in to comment.