MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / FindSetting

Method FindSetting

SampleFramework12/v1.00/Settings.cpp:866–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866Setting* SettingsContainer::FindSetting(const char* name)
867{
868 for(uint64 groupIdx = 0; groupIdx < groups.Count(); ++groupIdx)
869 {
870 SettingsGroup& group = groups[groupIdx];
871 for(uint64 settingIdx = 0; settingIdx < group.Settings.Count(); ++settingIdx)
872 {
873 if(group.Settings[settingIdx]->Name() == name)
874 return group.Settings[settingIdx];
875 }
876 }
877
878 return nullptr;
879}
880
881void SettingsContainer::AddGroup(const char* name, bool expanded)
882{

Callers

nothing calls this directly

Calls 1

CountMethod · 0.45

Tested by

no test coverage detected