]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
input.keyboard_type config entry parsing fixed.
authorToni Wilen <twilen@winuae.net>
Tue, 10 Jul 2018 19:28:25 +0000 (22:28 +0300)
committerToni Wilen <twilen@winuae.net>
Tue, 10 Jul 2018 19:28:25 +0000 (22:28 +0300)
inputdevice.cpp

index daedefa4ee761d6417fa101bc1defcd0dcc56cc3..399d320fb0b7098e8c6a877269262540d58e2733 100644 (file)
@@ -1479,7 +1479,7 @@ void read_inputdevice_config (struct uae_prefs *pr, const TCHAR *option, TCHAR *
        if (!strcasecmp (p, _T("autoswitch")))
                pr->input_autoswitch = _tstol (value);
        if (!strcasecmp (p, _T("keyboard_type"))) {
-               cfgfile_strval (option, value, NULL, &pr->input_keyboard_type, kbtypes, 0);
+               cfgfile_strval (p, value, p, &pr->input_keyboard_type, kbtypes, 0);
                keyboard_default = keyboard_default_table[pr->input_keyboard_type];
                inputdevice_default_kb_all (pr);
        }