SW: Get the log file working and avoid crashing due to not doing so

Patch from Striker.

git-svn-id: https://svn.eduke32.com/eduke32@7514 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-04-08 06:26:54 +00:00 committed by Christoph Oelckers
parent 2448bbe600
commit ee6326c2a0
2 changed files with 6 additions and 0 deletions

View file

@ -44,6 +44,10 @@ extern "C" {
// //
//**************************************************************************** //****************************************************************************
#ifndef APPBASENAME
#define APPBASENAME "voidsw"
#endif
// //
// Color Defines // Color Defines
// //

View file

@ -3472,6 +3472,8 @@ int32_t app_main(int32_t argc, char const * const * argv)
} }
#endif #endif
OSD_SetLogFile(APPBASENAME ".log");
{ {
char *supportdir = Bgetsupportdir(TRUE); char *supportdir = Bgetsupportdir(TRUE);
char *appdir = Bgetappdir(); char *appdir = Bgetappdir();