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

Function emptyUserString

src/OpenLoco/src/Localisation/StringManager.cpp:117–125  ·  view source on GitHub ↗

0x004965A6

Source from the content-addressed store, hash-verified

115
116 // 0x004965A6
117 void emptyUserString(StringId stringId)
118 {
119 if (!isUserString(stringId))
120 {
121 return;
122 }
123
124 *rawUserStrings()[stringId - kUserStringsStart] = '\0';
125 }
126
127 bool isUserString(StringId stringId)
128 {

Callers 15

deallocateStationFunction · 0.85
aiDestroyFunction · 0.85
freeUserStringsFunction · 0.85
freeEntityFunction · 0.85
renameStationFunction · 0.85
renameVehicleFunction · 0.85
renameIndustryFunction · 0.85
createIndustryFunction · 0.85
removeIndustryFunction · 0.85
changeCompanyFaceFunction · 0.85
changeCompanyOwnerNameFunction · 0.85
changeCompanyNameFunction · 0.85

Calls 1

isUserStringFunction · 0.85

Tested by

no test coverage detected