* Resolve compiling issues with logmessages.

* Improve logfile print. (I know Steel wanted it gone entirely, but I feel like it's relevant to have it in game..?)
This commit is contained in:
toaster 2019-09-20 17:22:09 +01:00
parent 8d3d5566b8
commit 113568095a
1 changed files with 7 additions and 3 deletions

View File

@ -131,11 +131,12 @@ int main(int argc, char **argv)
#ifdef LOGMESSAGES
if (!M_CheckParm("-nolog"))
{
logdir = D_Home();
time_t my_time;
struct tm * timeinfo;
char buf[26];
logdir = D_Home();
my_time = time(NULL);
timeinfo = localtime(&my_time);
@ -183,8 +184,11 @@ int main(int argc, char **argv)
// startup SRB2
CONS_Printf("Setting up SRB2...\n");
D_SRB2Main();
#ifdef LOGMESSAGES
if (!M_CheckParm("-nolog"))
CONS_Printf("Logfile: %s\n", logfile);
#endif
CONS_Printf("Entering main game loop...\n");
CONS_Printf("%s\n", logfile);
// never return
D_SRB2Loop();