MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / ReadString

Function ReadString

TombEngine/Specific/level.cpp:206–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206std::string ReadString()
207{
208 auto byteCount = ReadLEB128(false);
209
210 if (byteCount <= 0)
211 {
212 return std::string();
213 }
214 else
215 {
216 auto newPtr = CurrentDataPtr + byteCount;
217 auto result = std::string(CurrentDataPtr, newPtr);
218 CurrentDataPtr = newPtr;
219 return result;
220 }
221}
222
223void LoadItems()
224{

Callers 8

LoadItemsFunction · 0.85
LoadCamerasFunction · 0.85
LoadDynamicRoomDataFunction · 0.85
LoadSoundSourcesFunction · 0.85
LoadAIObjectsFunction · 0.85
LoadEventFunction · 0.85
LoadEventSetsFunction · 0.85
LoadMaterialsFunction · 0.85

Calls 1

ReadLEB128Function · 0.85

Tested by

no test coverage detected