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

Method Load

src/saveload/game_sl.cpp:138–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 }
137
138 void Load(LanguageStrings *ls) const override
139 {
140 uint32_t length = IsSavegameVersionBefore(SLV_SAVELOAD_LIST_LENGTH) ? _game_saveload_strings : (uint32_t)SlGetStructListLength(UINT32_MAX);
141
142 for (uint32_t i = 0; i < length; i++) {
143 SlObject(nullptr, this->GetLoadDescription());
144 ls->lines.emplace_back(_game_saveload_string);
145 }
146 }
147};
148
149static const SaveLoad _game_language_desc[] = {

Callers

nothing calls this directly

Calls 4

IsSavegameVersionBeforeFunction · 0.85
SlGetStructListLengthFunction · 0.85
SlObjectFunction · 0.85
GetLoadDescriptionMethod · 0.80

Tested by

no test coverage detected