Skip to content
Snippets Groups Projects
Commit 569a3401 authored by Yukita Mayako's avatar Yukita Mayako
Browse files

Added -nolog for SDL2 to disable log.txt

parent 2308441e
Branches
No related tags found
No related merge requests found
...@@ -199,6 +199,8 @@ int main(int argc, char **argv) ...@@ -199,6 +199,8 @@ int main(int argc, char **argv)
logdir = D_Home(); logdir = D_Home();
#ifdef LOGMESSAGES #ifdef LOGMESSAGES
if (!M_CheckParm("-nolog"))
{
#if defined(_WIN32_WCE) || defined(GP2X) #if defined(_WIN32_WCE) || defined(GP2X)
logstream = fopen(va("%s.log",argv[0]), "wt"); logstream = fopen(va("%s.log",argv[0]), "wt");
#elif defined (_WII) #elif defined (_WII)
...@@ -209,6 +211,7 @@ int main(int argc, char **argv) ...@@ -209,6 +211,7 @@ int main(int argc, char **argv)
else else
#endif #endif
logstream = fopen("./log.txt", "wt"); logstream = fopen("./log.txt", "wt");
}
#endif #endif
//I_OutputMsg("I_StartupSystem() ...\n"); //I_OutputMsg("I_StartupSystem() ...\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment