| 120 | } |
| 121 | |
| 122 | void ReconfigureLiveNet(const Pcsx2Config& old_config) |
| 123 | { |
| 124 | //Eth |
| 125 | if (EmuConfig.DEV9.EthEnable) |
| 126 | { |
| 127 | if (old_config.DEV9.EthEnable) |
| 128 | { |
| 129 | //Reload Net if adapter changed |
| 130 | if (EmuConfig.DEV9.EthDevice != old_config.DEV9.EthDevice || |
| 131 | EmuConfig.DEV9.EthApi != old_config.DEV9.EthApi) |
| 132 | { |
| 133 | TermNet(); |
| 134 | InitNet(); |
| 135 | return; |
| 136 | } |
| 137 | else |
| 138 | nif->reloadSettings(); |
| 139 | } |
| 140 | else |
| 141 | InitNet(); |
| 142 | } |
| 143 | else if (old_config.DEV9.EthEnable) |
| 144 | TermNet(); |
| 145 | } |
| 146 | |
| 147 | void TermNet() |
| 148 | { |
no test coverage detected