WIP: add some tests cards

This commit is contained in:
tomcw
2025-11-14 20:54:44 +00:00
parent 10d282d332
commit 459c2e6ca4
3 changed files with 23 additions and 0 deletions
+12
View File
@@ -314,3 +314,15 @@ void CardManager::SaveSnapshot(YamlSaveHelper& yamlSaveHelper)
}
}
}
void CardManager::GetCardChoicesForSlot(UINT slot, char* choices)
{
strcpy(choices, "Card 1");
choices += 7;
strcpy(choices, "Card 2");
choices += 7;
strcpy(choices, "Card 3");
choices += 7;
*choices = 0;
}
+1
View File
@@ -61,6 +61,7 @@ public:
bool IsSSCInstalled(void) { return m_pSSC != NULL; }
class ParallelPrinterCard* GetParallelPrinterCard(void) { return m_pParallelPrinterCard; }
bool IsParallelPrinterCardInstalled(void) { return m_pParallelPrinterCard != NULL; }
void GetCardChoicesForSlot(UINT slot, char* choices);
void InitializeIO(LPBYTE pCxRomPeripheral);
void Destroy(void);
+10
View File
@@ -230,6 +230,16 @@ void CPageSound::InitOptions(HWND hWnd)
else
m_PropertySheetHelper.FillComboBox(hWnd, IDC_SLOT5, m_soundCardChoice_Unavailable, 0);
for (int slot = 0; slot < 8; slot++)
{
if (slot == 4 || slot == 5)
continue;
char choices[100];
GetCardMgr().GetCardChoicesForSlot(slot, &choices[0]);
m_PropertySheetHelper.FillComboBox(hWnd, IDC_SLOT0+slot, choices, 0);
}
#if 0
bool enableMBVolume = slot4 == CT_MockingboardC || slot5 == CT_MockingboardC
|| slot4 == CT_Phasor || slot5 == CT_Phasor