From: Toni Wilen Date: Wed, 26 May 2010 14:26:44 +0000 (+0300) Subject: gameports fix X-Git-Tag: 2200~19 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=189e280db8c51536970ef40b536e52411e9e2a78;p=francis%2Fwinuae.git gameports fix --- diff --git a/inputdevice.cpp b/inputdevice.cpp index 951790c1..6a7d9b96 100644 --- a/inputdevice.cpp +++ b/inputdevice.cpp @@ -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; }