Skip to content

Commit 9b79ba7

Browse files
author
CppAndre
committed
More debugging stuff
1 parent 05a9342 commit 9b79ba7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/game/Game_local.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,12 @@ void idGameLocal::Init(void) {
375375
Printf("--------------------------------------\n");
376376

377377
// PreyRun BEGIN
378+
#ifdef PR_DEBUG
379+
// Enable console logging
380+
cvarSystem->SetCVarString("logFileName", "Console.log");
381+
cvarSystem->SetCVarInteger("logFile", 1);
382+
#endif // PR_DEBUG
383+
378384
// Open log file
379385
pr_logfile = fileSystem->OpenFileWrite(pr::LogFilePath, "fs_savepath");
380386

0 commit comments

Comments
 (0)