| 484 | } |
| 485 | |
| 486 | void ToggleUnofficialExtraRegionCode(HWND hwnd, bool ines20, bool unofficial_check, bool check) |
| 487 | { |
| 488 | // The unofficial byte to determine whether multiple region is valid |
| 489 | |
| 490 | // Multiple in Region Groupbox |
| 491 | EnableWindow(GetDlgItem(hwnd, IDC_RADIO_REGION_DUAL), ines20 || unofficial_check && check); |
| 492 | |
| 493 | // Dual region is not avalable when in ines 1.0 and extra region in unofficial is not checked, switch it back to NTSC |
| 494 | if (!ines20 && (!unofficial_check || !check) && IsDlgButtonChecked(hwnd, IDC_RADIO_REGION_DUAL) == BST_CHECKED) |
| 495 | CheckRadioButton(hwnd, IDC_RADIO_REGION_NTSC, IDC_RADIO_REGION_DENDY, IDC_RADIO_REGION_NTSC); |
| 496 | } |
| 497 | |
| 498 | void ToggleUnofficialPrgRamPresent(HWND hwnd, bool ines20, bool unofficial_check, bool check) { |
| 499 | // The unofficial byte to determine wheter PRGRAM exists |
no outgoing calls
no test coverage detected