Debugger: Show if RAMWORKS Language Card is installed, and which page is active

This commit is contained in:
michaelangel007 2017-04-27 14:06:01 -07:00
parent 93e6d668e7
commit 9fd479b976

View File

@ -2982,8 +2982,26 @@ void DrawSoftSwitches( int iSoftSwitch )
_DrawSoftSwitchLanguageCardBank( rect, 2 );
// LC1
int extraBank = 0;
#ifdef RAMWORKS
// We could show the RAMWORKS active bank only when main isn't active via
// if (g_uActiveBank > 0)
// We want to always show that RAMWORKS card is installed even if on page 0 aka "r00"
if (g_eMemType == MEM_TYPE_RAMWORKS)
extraBank = g_uActiveBank;
#endif //RAMWORKS
#ifdef SATURN
if (g_eMemType == MEM_TYPE_SATURN)
extraBank = g_uSaturnActiveBank;
#endif // SATURN
extraBank |= (int)(g_eMemType) << 8;
rect.left = DISPLAY_SOFTSWITCH_COLUMN; // INFO_COL_2;
_DrawSoftSwitchLanguageCardBank( rect, 1 );
_DrawSoftSwitchLanguageCardBank( rect, 1, extraBank );
#endif
#endif // SOFTSWITCH_OLD