MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getString

Function getString

src/OpenLoco/src/Localisation/StringManager.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 const char* getString(StringId id)
54 {
55 if (id >= _strings.size())
56 {
57 Diagnostics::Logging::error("Tried to access invalid string id: {}", id);
58 return nullptr;
59 }
60 char* str = _strings[id];
61 return str;
62 }
63
64 void setString(StringId id, std::string_view value)
65 {

Callers 15

sortPlaylistByTitleFunction · 0.85
setPreferredNameFunction · 0.85
getStationArgumentsFunction · 0.85
getIndustryArgumentsFunction · 0.85
rightOverBuildingFunction · 0.85
prepareSaveScreenshotFunction · 0.85
prepareDrawFunction · 0.85
drawFunction · 0.85
drawScrollFunction · 0.85
prepareDrawFunction · 0.85
drawScrollFunction · 0.85
drawDatDetailsFunction · 0.85

Calls 2

errorFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected