Update from current global configuration
| 103 | |
| 104 | // Update from current global configuration |
| 105 | void CConfigNeedingRestart::Reload() |
| 106 | { |
| 107 | // Configuration |
| 108 | m_Apple2Type = GetApple2Type(); |
| 109 | m_CpuType = GetMainCpu(); |
| 110 | m_confirmReboot = GetFrame().g_bConfirmReboot; |
| 111 | m_masterVolume = SpkrGetVolume(); |
| 112 | m_videoType = GetVideo().GetVideoType(); |
| 113 | m_videoStyle = GetVideo().GetVideoStyle(); |
| 114 | m_videoRefreshRate = GetVideo().GetVideoRefreshRate(); |
| 115 | m_monochromeRGB = GetVideo().GetMonochromeRGB(); |
| 116 | m_fullScreen_ShowSubunitStatus = GetFrame().GetFullScreenShowSubunitStatus(); |
| 117 | m_scrollLockToggle = GetPropertySheet().GetScrollLockToggle(); |
| 118 | m_enhanceDiskAccessSpeed = GetCardMgr().GetDisk2CardMgr().GetEnhanceDisk(); |
| 119 | m_machineSpeed = g_dwSpeed; |
| 120 | |
| 121 | // Input |
| 122 | m_joystickType[JN_JOYSTICK0] = JoyGetJoyType(JN_JOYSTICK0); |
| 123 | m_joystickType[JN_JOYSTICK1] = JoyGetJoyType(JN_JOYSTICK1); |
| 124 | m_pdlXTrim = JoyGetTrim(true); |
| 125 | m_pdlYTrim = JoyGetTrim(false); |
| 126 | m_autofire = GetPropertySheet().GetAutofire(); |
| 127 | m_centeringControl = GetPropertySheet().GetJoystickCenteringControl(); |
| 128 | m_cursorControl = GetPropertySheet().GetJoystickCursorControl(); |
| 129 | m_swapButtons0and1 = GetPropertySheet().GetButtonsSwapState(); |
| 130 | |
| 131 | // Slots |
| 132 | CardManager& cardManager = GetCardMgr(); |
| 133 | for (UINT slot = SLOT0; slot < NUM_SLOTS; slot++) |
| 134 | m_Slot[slot] = cardManager.QuerySlot(slot); |
| 135 | m_SlotAux = cardManager.QueryAux(); |
| 136 | |
| 137 | for (UINT slot = SLOT0; slot < NUM_SLOTS; slot++) |
| 138 | { |
| 139 | if (m_Slot[slot] == CT_Uthernet || m_Slot[slot] == CT_Uthernet2) |
| 140 | { |
| 141 | // Assume only one CT_Uthernet or CT_Uthernet2 inserted |
| 142 | m_tfeInterface = PCapBackend::GetRegistryInterface(slot); |
| 143 | m_tfeVirtualDNS = Uthernet2::GetRegistryVirtualDNS(slot); |
| 144 | } |
| 145 | else if (m_Slot[slot] == CT_Disk2) |
| 146 | { |
| 147 | Disk2InterfaceCard& card = dynamic_cast<Disk2InterfaceCard&>(cardManager.GetRef(slot)); |
| 148 | m_diskII13SectorFirmware[slot] = card.Get13SectorFirmware(); |
| 149 | |
| 150 | for (UINT i = DRIVE_1; i < NUM_DRIVES; i++) |
| 151 | { |
| 152 | m_slotInfoForFDC[slot].pathname[i] = card.DiskGetFullPathName(i); |
| 153 | } |
| 154 | } |
| 155 | else if (m_Slot[slot] == CT_GenericHDD) |
| 156 | { |
| 157 | HarddiskInterfaceCard& card = dynamic_cast<HarddiskInterfaceCard&>(cardManager.GetRef(slot)); |
| 158 | m_hdcFirmware[slot] = card.GetHdcFirmwareMode(); |
| 159 | |
| 160 | for (UINT i = HARDDISK_1; i < NUM_HARDDISKS; i++) |
| 161 | { |
| 162 | m_slotInfoForHDC[slot].pathname[i] = card.HarddiskGetFullPathName(i); |
no test coverage detected