diff options
Diffstat (limited to 'src/botlib')
-rw-r--r-- | src/botlib/be_interface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/botlib/be_interface.c b/src/botlib/be_interface.c index fe5cbe8d..e70a6d4a 100644 --- a/src/botlib/be_interface.c +++ b/src/botlib/be_interface.c @@ -137,12 +137,14 @@ qboolean BotLibSetup(char *str) int Export_BotLibSetup(void) { int errnum; + char logfilename[MAX_QPATH]; bot_developer = LibVarGetValue("bot_developer"); memset( &botlibglobals, 0, sizeof(botlibglobals) ); // bk001207 - init //initialize byte swapping (litte endian etc.) // Swap_Init(); - Log_Open("botlib.log"); + Com_sprintf(logfilename, sizeof(logfilename), "%s%cbotlib.log", LibVarGetString("homedir"), PATH_SEP); + Log_Open(logfilename); // botimport.Print(PRT_MESSAGE, "------- BotLib Initialization -------\n"); // |