MCPcopy Create free account
hub / github.com/cathery/sys-con / LoadAllConfigs

Function LoadAllConfigs

source/Sysmodule/source/config_handler.cpp:199–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 }
198
199 void LoadAllConfigs()
200 {
201 if (R_SUCCEEDED(ReadFromConfig(GLOBALCONFIG)))
202 {
203 LoadGlobalConfig(tempGlobalConfig);
204 }
205 else
206 WriteToLog("Failed to read from global config!");
207
208 if (R_SUCCEEDED(ReadFromConfig(XBOXCONFIG)))
209 {
210 XboxController::LoadConfig(&tempConfig);
211 }
212 else
213 WriteToLog("Failed to read from xbox orig config!");
214
215 if (R_SUCCEEDED(ReadFromConfig(XBOXONECONFIG)))
216 XboxOneController::LoadConfig(&tempConfig);
217 else
218 WriteToLog("Failed to read from xbox one config!");
219
220 if (R_SUCCEEDED(ReadFromConfig(XBOX360CONFIG)))
221 {
222 Xbox360Controller::LoadConfig(&tempConfig);
223 Xbox360WirelessController::LoadConfig(&tempConfig);
224 }
225 else
226 WriteToLog("Failed to read from xbox 360 config!");
227
228 if (R_SUCCEEDED(ReadFromConfig(DUALSHOCK3CONFIG)))
229 Dualshock3Controller::LoadConfig(&tempConfig);
230 else
231 WriteToLog("Failed to read from dualshock 3 config!");
232
233 if (R_SUCCEEDED(ReadFromConfig(DUALSHOCK4CONFIG)))
234 Dualshock4Controller::LoadConfig(&tempConfig, tempColor);
235 else
236 WriteToLog("Failed to read from dualshock 4 config!");
237 }
238
239 bool CheckForFileChanges()
240 {

Callers 2

InitializeFunction · 0.85

Calls 3

ReadFromConfigFunction · 0.85
LoadGlobalConfigFunction · 0.85
WriteToLogFunction · 0.85

Tested by

no test coverage detected