From 3ee1fe0d4b680b1f9fe07a3b35d41a85f7968660 Mon Sep 17 00:00:00 2001 From: mtabachenko Date: Mon, 11 Nov 2013 20:25:33 +0000 Subject: [PATCH] winport: - fix initialize slot2; --- desmume/src/addons/slot2_auto.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/desmume/src/addons/slot2_auto.cpp b/desmume/src/addons/slot2_auto.cpp index b9f35138a..da098dcce 100644 --- a/desmume/src/addons/slot2_auto.cpp +++ b/desmume/src/addons/slot2_auto.cpp @@ -19,6 +19,9 @@ #include "../registers.h" #include "../MMU.h" #include "../NDSSystem.h" +#ifdef HOST_WINDOWS +#include "../windows/inputdx.h" +#endif class Slot2_Auto : public ISlot2Interface { @@ -76,6 +79,12 @@ public: mSelectedImplementation = slot2_List[selection]; mSelectedImplementation->connect(); printf("Slot2 auto-selected device type: %s\n", mSelectedImplementation->info()->name()); + +#ifdef HOST_WINDOWS + Guitar.Enabled = (selection == NDS_SLOT2_GUITARGRIP)?true:false; + Piano.Enabled = (selection == NDS_SLOT2_EASYPIANO)?true:false; + Paddle.Enabled = (selection == NDS_SLOT2_PADDLE)?true:false; +#endif } virtual void disconnect()