MCPcopy Create free account
hub / github.com/ZDoom/Raze / execLogfile

Function execLogfile

source/common/console/c_enginecmds.cpp:109–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void execLogfile(const char *fn, bool append)
110{
111 if ((Logfile = fopen(fn, append? "a" : "w")))
112 {
113 const char *timestr = myasctime();
114 Printf("Log started: %s\n", timestr);
115 }
116 else
117 {
118 Printf("Could not start log\n");
119 }
120}
121
122UNSAFE_CCMD (logfile)
123{

Callers 2

RunGameFunction · 0.85
UNSAFE_CCMDFunction · 0.85

Calls 2

myasctimeFunction · 0.85
PrintfFunction · 0.85

Tested by

no test coverage detected