Add a new Registry Configuration interface: "Game I/O Connector" (like Slots).

Change Config->Advanced to show 'Game I/O Connector' (instead of 'Copy Protection Dongle').
This commit is contained in:
tomcw
2022-12-31 17:32:50 +00:00
parent be62e7afa5
commit 043bc49f3d
11 changed files with 53 additions and 32 deletions
+4 -4
View File
@@ -168,12 +168,12 @@ void LoadConfiguration(bool loadImages)
else
LoadConfigOldJoystick_v1(JN_JOYSTICK1);
DWORD copyProtectionDongleType;
if (REGLOAD(TEXT(REGVALUE_COPYPROTECTIONDONGLE_TYPE), &copyProtectionDongleType))
SetCopyProtectionDongleType(copyProtectionDongleType);
std::string regSection = RegGetConfigSlotSection(GAME_IO_CONNECTOR);
if (RegLoadValue(regSection.c_str(), REGVALUE_GAME_IO_TYPE, TRUE, &copyProtectionDongleType))
SetCopyProtectionDongleType((DONGLETYPE)copyProtectionDongleType);
else
SetCopyProtectionDongleType(0); // None
SetCopyProtectionDongleType(DT_EMPTY);
DWORD dwSoundType;
REGLOAD_DEFAULT(TEXT(REGVALUE_SOUND_EMULATION), &dwSoundType, REG_SOUNDTYPE_WAVE);