Slot-2 Rumble Pak:

- The use of the BOOL datatype in a function pointer for front-ends is not as portable as one might think. Switch to using a standard C++ bool datatype instead.
- Add auto-selection to Rumble Pak for Metroid Prime Pinball.
This commit is contained in:
rogerman 2013-12-31 04:49:37 +00:00
parent 2b633d1cb3
commit 38f02e0804
4 changed files with 4 additions and 3 deletions

View File

@ -18,7 +18,7 @@
#include "../slot2.h"
void (*FeedbackON)(BOOL enable) = NULL;
void (*FeedbackON)(bool enable) = NULL;
class Slot2_RumblePak : public ISlot2Interface
{

View File

@ -247,6 +247,7 @@ NDS_SLOT2_TYPE slot2_DetermineTypeByGameCode(const char *theGameCode)
{"CB6", NDS_SLOT2_PADDLE}, // Space Bust-A-Move
{"YXX", NDS_SLOT2_PADDLE}, // Space Invaders Extreme
{"CV8", NDS_SLOT2_PADDLE}, // Space Invaders Extreme 2
{"AP2", NDS_SLOT2_RUMBLEPAK}, // Metroid Prime Hunters Pinball
};
for(size_t i = 0; i < ARRAY_SIZE(gameCodeDeviceTypes); i++)

View File

@ -135,7 +135,7 @@ bool slot2_read(u32 addr, T &val);
// =================================================================================
extern char GBAgameName[MAX_PATH]; // file name for GBA game (rom)
extern void (*FeedbackON)(BOOL enable); // feedback on/off
extern void (*FeedbackON)(bool enable); // feedback on/off
enum ADDON_CFLASH_MODE
{

View File

@ -2627,7 +2627,7 @@ void S9xWinScanJoypads ()
#include "directx/xinput.h"
void input_feedback(BOOL enable)
void input_feedback(bool enable)
{
for(int C=0;C<16;C++)