MCPcopy Create free account
hub / github.com/bbbradsmith/nsfplay / UpdateNSFPlayerConfig

Method UpdateNSFPlayerConfig

nsfplug_ui/NSFN106Panel.cpp:30–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29
30void NSFN106Panel::UpdateNSFPlayerConfig(bool b)
31{
32 NSFDialog::UpdateNSFPlayerConfig(b);
33
34 if(!m_hWnd) return ;
35
36 if(b)
37 {
38 m_serial = pm->cf->GetDeviceOption(N106,NES_N106::OPT_SERIAL).GetInt();
39 m_phase_read_only = pm->cf->GetDeviceOption(N106,NES_N106::OPT_PHASE_READ_ONLY).GetInt();
40 m_limit_wavelength = pm->cf->GetDeviceOption(N106,NES_N106::OPT_LIMIT_WAVELENGTH).GetInt();
41 UpdateData(FALSE);
42 }
43 else
44 {
45 UpdateData(TRUE);
46 pm->cf->GetDeviceOption(N106, NES_N106::OPT_SERIAL) = m_serial;
47 pm->cf->GetDeviceOption(N106, NES_N106::OPT_PHASE_READ_ONLY) = m_phase_read_only;
48 pm->cf->GetDeviceOption(N106, NES_N106::OPT_LIMIT_WAVELENGTH) = m_limit_wavelength;
49 pm->cf->Notify(N106);
50 }
51}
52
53void NSFN106Panel::DoDataExchange(CDataExchange* pDX)
54{

Callers

nothing calls this directly

Calls 2

GetIntMethod · 0.80
NotifyMethod · 0.45

Tested by

no test coverage detected