Skip to content

Commit

Permalink
ee_core: load debug modules before loading drivers
Browse files Browse the repository at this point in the history
So we can debug the drivers also.
  • Loading branch information
rickgaiser committed Dec 29, 2020
1 parent 9fc223c commit 32e398e
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions ee_core/src/iopmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,19 @@ static void ResetIopSpecial(const char *args, unsigned int arglen)
sbv_patch_enable_lmb();

DPRINTF("Loading extra IOP modules...\n");

#ifdef __LOAD_DEBUG_MODULES
LoadOPLModule(OPL_MODULE_ID_SMSTCPIP, 0, 0, NULL);
LoadOPLModule(OPL_MODULE_ID_SMAP, 0, g_ipconfig_len, g_ipconfig);
#ifdef __DECI2_DEBUG
LoadOPLModule(OPL_MODULE_ID_DRVTIF, 0, 0, NULL);
LoadOPLModule(OPL_MODULE_ID_TIFINET, 0, 0, NULL);
#else
LoadOPLModule(OPL_MODULE_ID_UDPTTY, 0, 0, NULL);
LoadOPLModule(OPL_MODULE_ID_IOPTRAP, 0, 0, NULL);
#endif
#endif

#ifdef PADEMU
#define PADEMU_ARG || EnablePadEmuOp
#else
Expand All @@ -89,24 +102,12 @@ static void ResetIopSpecial(const char *args, unsigned int arglen)
LoadOPLModule(OPL_MODULE_ID_USBD, 0, 11, "thpri=2,3");
}
if (GameMode == ETH_MODE) {
#ifndef __LOAD_DEBUG_MODULES
LoadOPLModule(OPL_MODULE_ID_SMSTCPIP, 0, 0, NULL);
LoadOPLModule(OPL_MODULE_ID_SMAP, 0, g_ipconfig_len, g_ipconfig);
#endif
LoadOPLModule(OPL_MODULE_ID_SMBINIT, 0, 0, NULL);
}

#ifdef __LOAD_DEBUG_MODULES
if (GameMode != ETH_MODE) {
LoadOPLModule(OPL_MODULE_ID_SMSTCPIP, 0, 0, NULL);
LoadOPLModule(OPL_MODULE_ID_SMAP, 0, g_ipconfig_len, g_ipconfig);
}
#ifdef __DECI2_DEBUG
LoadOPLModule(OPL_MODULE_ID_DRVTIF, 0, 0, NULL);
LoadOPLModule(OPL_MODULE_ID_TIFINET, 0, 0, NULL);
#else
LoadOPLModule(OPL_MODULE_ID_UDPTTY, 0, 0, NULL);
LoadOPLModule(OPL_MODULE_ID_IOPTRAP, 0, 0, NULL);
#endif
#endif
}

/*----------------------------------------------------------------------------------------*/
Expand Down

0 comments on commit 32e398e

Please sign in to comment.