From 9fd479b9766bbf229b37ca58ec02a83884c11dc5 Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Thu, 27 Apr 2017 14:06:01 -0700 Subject: [PATCH] Debugger: Show if RAMWORKS Language Card is installed, and which page is active --- source/Debugger/Debugger_Display.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/source/Debugger/Debugger_Display.cpp b/source/Debugger/Debugger_Display.cpp index 27872013..79305d83 100644 --- a/source/Debugger/Debugger_Display.cpp +++ b/source/Debugger/Debugger_Display.cpp @@ -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