MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / loadReplayHeader

Function loadReplayHeader

TheForceEngine/TFE_Input/replay.cpp:429–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427 }
428
429 bool loadReplayHeader(const char* filePath, TFE_SaveSystem::SaveHeader* header)
430 {
431 bool ret = false;
432 FileStream stream;
433 char fileName[TFE_MAX_PATH];
434 FileUtil::getFileNameFromPath(filePath, fileName, true);
435 if (stream.open(filePath, Stream::MODE_READ))
436 {
437 loadHeader(&stream, header, filePath);
438 strcpy(header->fileName, fileName);
439 stream.close();
440 ret = true;
441 }
442 return ret;
443 }
444
445 // Handles the header and agent data for the replay
446 int serializeHeaderAgentInfo(Stream* stream, bool writeFlag)

Callers 2

populateReplayDirectoryFunction · 0.85
loadReplayFromPathFunction · 0.85

Calls 4

loadHeaderFunction · 0.85
getFileNameFromPathFunction · 0.50
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected