From c9643cd0ab43c49f22aeea3d416b7307eb19e6d2 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Thu, 5 Aug 2021 20:03:55 +0300 Subject: [PATCH] NES 2.0 header editor bugfix for input device --- src/drivers/win/header_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/win/header_editor.cpp b/src/drivers/win/header_editor.cpp index 492b38cb..959da749 100644 --- a/src/drivers/win/header_editor.cpp +++ b/src/drivers/win/header_editor.cpp @@ -909,7 +909,7 @@ void SetHeaderData(HWND hwnd, iNES_HEADER* header) { } // Input Device: - int input = header->reserved[1] & 0x1F; + int input = header->reserved[1] & 0x3F; if (SendDlgItemMessage(hwnd, IDC_INPUT_DEVICE_COMBO, CB_SETCURSEL, input, 0) == CB_ERR) { sprintf(buf, "$%02X", input);