MCPcopy Create free account
hub / github.com/TASEmulators/fceux / ToggleUnofficialExtraRegionCode

Function ToggleUnofficialExtraRegionCode

src/drivers/win/header_editor.cpp:486–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486void 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
498void ToggleUnofficialPrgRamPresent(HWND hwnd, bool ines20, bool unofficial_check, bool check) {
499 // The unofficial byte to determine wheter PRGRAM exists

Calls

no outgoing calls

Tested by

no test coverage detected