]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
gameports fix
authorToni Wilen <twilen@winuae.net>
Wed, 26 May 2010 14:26:44 +0000 (17:26 +0300)
committerToni Wilen <twilen@winuae.net>
Wed, 26 May 2010 14:26:44 +0000 (17:26 +0300)
inputdevice.cpp

index 951790c1e1debd9616843bbc230444a84798d5ae..6a7d9b964c682b3d4295363ec72272b21482f86e 100644 (file)
@@ -886,14 +886,14 @@ void read_inputdevice_config (struct uae_prefs *pr, TCHAR *option, TCHAR *value)
        }
 
        if (!_tcscmp (p2, L"custom")) {
-               int disabled;
+               int iscustom;
                p = value;
-               disabled = getnum (&p);
+               iscustom = getnum (&p);
                if (idnum == GAMEPORT_INPUT_SETTINGS) {
                        clear_id (id);
                        if (joystick < 0)
                                set_kbr_default (pr, idnum, devnum);
-                       id->enabled = disabled == 0 ? 1 : 0;
+                       id->enabled = iscustom;
                }
                return;
        }