MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ReconfigureLiveNet

Function ReconfigureLiveNet

pcsx2/DEV9/net.cpp:122–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void 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
147void TermNet()
148{

Callers 1

DEV9CheckChangesFunction · 0.85

Calls 3

TermNetFunction · 0.85
InitNetFunction · 0.85
reloadSettingsMethod · 0.45

Tested by

no test coverage detected