MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / Debug_InitLogging

Function Debug_InitLogging

Source/Debug/DebugLog.cpp:39–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37//
38//*****************************************************************************
39bool Debug_InitLogging()
40{
41 IO::Filename log_filename;
42
43 Dump_GetDumpDirectory(log_filename, "");
44
45 IO::Path::Append(log_filename, "daedalus.txt");
46
47#ifdef DAEDALUS_DEBUG_CONSOLE
48 if ( CDebugConsole::IsAvailable() )
49 {
50 CDebugConsole::Get()->Msg( 0, "Creating Dump file '%s'", log_filename );
51 }
52#endif
53 g_hOutputLog = fopen( log_filename, "w" );
54
55 return g_hOutputLog != NULL;
56}
57
58//*****************************************************************************
59//

Callers

nothing calls this directly

Calls 3

Dump_GetDumpDirectoryFunction · 0.85
AppendFunction · 0.50
MsgMethod · 0.45

Tested by

no test coverage detected