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

Function logOpen

TheForceEngine/TFE_System/log.cpp:41–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 }
40
41 bool logOpen(const char* filename, bool append)
42 {
43 char logPath[TFE_MAX_PATH];
44 TFE_Paths::appendPath(PATH_USER_DOCUMENTS, filename, logPath);
45 if (append)
46 {
47 return s_logFile.open(logPath, Stream::MODE_APPEND);
48 }
49 else
50 {
51 return s_logFile.open(logPath, Stream::MODE_WRITE);
52 }
53 }
54
55 void logClose()
56 {

Callers 4

openRotatingLogFunction · 0.85
endCommonReplayStatesFunction · 0.85
startRecordingFunction · 0.85
loadReplayFunction · 0.85

Calls 2

appendPathFunction · 0.50
openMethod · 0.45

Tested by

no test coverage detected