MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / LoadDifficulties

Method LoadDifficulties

engine/Poseidon/Core/Config/ConfigFunctions.cpp:75–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73extern void UserConfig_SaveDifficulties(const UserConfig& uc);
74
75void Config::LoadDifficulties()
76{
77 UserConfig_LoadDifficulties(USER_CONFIG);
78
79 ParamFile userCfg;
80 userCfg.Parse(::GetUserParams());
81 const ParamEntry* entry = userCfg.FindEntry("showRadio");
82 if (entry)
83 {
84 GChatList.Enable(*entry);
85 }
86}
87
88void Config::SaveDifficulties()
89{

Callers

nothing calls this directly

Calls 5

GetUserParamsFunction · 0.85
ParseMethod · 0.45
FindEntryMethod · 0.45
EnableMethod · 0.45

Tested by

no test coverage detected