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

Function swapString

src/OpenLoco/src/Localisation/StringManager.cpp:71–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 const char* swapString(StringId id, const char* src)
72 {
73 auto* dst = _strings[id];
74 _strings[id] = const_cast<char*>(src);
75 return dst;
76 }
77
78 // 0x00496522
79 StringId userStringAllocate(char* str, bool mustBeUnique)

Callers 2

loadStringTableFunction · 0.85
loadLanguageStringTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected