MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetGroup

Method GetGroup

src/ini_load.cpp:118–125  ·  view source on GitHub ↗

* Get the group with the given name. * @param name name of the group to find. * @return The requested group or \c nullptr if not found. */

Source from the content-addressed store, hash-verified

116 * @return The requested group or \c nullptr if not found.
117 */
118const IniGroup *IniLoadFile::GetGroup(std::string_view name) const
119{
120 for (const IniGroup &group : this->groups) {
121 if (group.name == name) return &group;
122 }
123
124 return nullptr;
125}
126
127/**
128 * Get the group with the given name.

Callers 15

IniLoadSettingsFunction · 0.80
IniLoadSettingListFunction · 0.80
AILoadConfigFunction · 0.80
GameLoadConfigFunction · 0.80
GraphicsSetLoadConfigFunction · 0.80
GRFLoadConfigFunction · 0.80
LoadVersionFromConfigFunction · 0.80
RemoveEntriesFromIniFunction · 0.80
IsConversionNeededFunction · 0.80
LoadFromConfigFunction · 0.80
SaveToConfigFunction · 0.80
FillSetDetailsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected