Add support for hardware copy protection dongles in game i/o socket (#1153, PR #1154)

Changes:
- Add a drop-down menu to the 'Advanced' tab that lets the user select a dongle in use
- Add a new file "CopyProtectionDongles.cpp" that is a place to put drivers for these.
- Add a driver for the one known dongle we have now - Speed Star
- Modify Joystick.cpp to allow PB0-PB2 to be "pushed" by the protection dongle.
This commit is contained in:
Matthew D'Asaro
2022-12-16 01:04:29 -08:00
committed by GitHub
parent 5c0f3d03ad
commit e5a87b5063
12 changed files with 152 additions and 2 deletions
+8
View File
@@ -47,6 +47,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "Mockingboard.h"
#include "Interface.h"
#include "SoundCore.h"
#include "CopyProtectionDongles.h"
#include "Configuration/IPropertySheet.h"
#include "Tfe/PCapBackend.h"
@@ -167,6 +168,13 @@ void LoadConfiguration(bool loadImages)
else
LoadConfigOldJoystick_v1(JN_JOYSTICK1);
DWORD copyProtectionDongleType;
if (REGLOAD(TEXT(REGVALUE_COPYPROTECTIONDONGLE_TYPE), &copyProtectionDongleType))
SetCopyProtectionDongleType(copyProtectionDongleType);
else
SetCopyProtectionDongleType(0); // None
DWORD dwSoundType;
REGLOAD_DEFAULT(TEXT(REGVALUE_SOUND_EMULATION), &dwSoundType, REG_SOUNDTYPE_WAVE);
switch (dwSoundType)