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

Function ToggleUnofficialPrgRamPresent

src/drivers/win/header_editor.cpp:498–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498void ToggleUnofficialPrgRamPresent(HWND hwnd, bool ines20, bool unofficial_check, bool check) {
499 // The unofficial byte to determine wheter PRGRAM exists
500 // PRG RAM
501 bool enable = ines20 || !unofficial_check || check;
502 // When unofficial 10th byte was not set, the PRG RAM is defaultly enabled
503 EnableWindow(GetDlgItem(hwnd, IDC_PRGRAM_TEXT), enable);
504 EnableWindow(GetDlgItem(hwnd, IDC_PRGRAM_COMBO), enable);
505}
506
507INT_PTR CALLBACK HeaderEditorProc(HWND hDlg, UINT uMsg, WPARAM wP, LPARAM lP)
508{

Calls

no outgoing calls

Tested by

no test coverage detected