| 28 | |
| 29 | |
| 30 | void 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 | |
| 53 | void NSFN106Panel::DoDataExchange(CDataExchange* pDX) |
| 54 | { |