tLogging to a file should now work properly again. - vaccinewars - be a doctor … | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 4b2ee96bbcd2229edce28a0a259d334b622e9822 | |
parent 72d6fe8767a92c35d956100700defeba2029127b | |
Author: Ben Webb <[email protected]> | |
Date: Mon, 23 Jun 2003 11:24:45 +0000 | |
Logging to a file should now work properly again. | |
Diffstat: | |
M ChangeLog | 1 + | |
M src/dopewars.c | 4 ++++ | |
M src/winmain.c | 3 +++ | |
3 files changed, 8 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/ChangeLog b/ChangeLog | |
t@@ -2,6 +2,7 @@ cvs | |
- Fix for a curses client crash if the D key is pressed during attacks | |
by the cops | |
- Some problems with the curses client missing screen resize events fixed | |
+ - Logging to a file should now work properly again | |
1.5.9 07-06-2003 | |
- The messages window in the curses client can now be scrolled with the | |
diff --git a/src/dopewars.c b/src/dopewars.c | |
t@@ -2832,6 +2832,7 @@ void InitConfiguration(struct CMDLINE *cmdline) | |
} | |
if (cmdline->logfile) { | |
AssignName(&Log.File, cmdline->logfile); | |
+ OpenLog(); | |
} | |
if (cmdline->setport) { | |
Port = cmdline->port; | |
t@@ -2956,6 +2957,9 @@ int main(int argc, char *argv[]) | |
WantUTF8Errors(FALSE); | |
g_log_set_handler(NULL, LogMask(), DefaultLogMessage, NULL); | |
cmdline = GeneralStartup(argc, argv); | |
+ if (cmdline->logfile) { | |
+ AssignName(&Log.File, cmdline->logfile); | |
+ } | |
OpenLog(); | |
SoundInit(); | |
if (cmdline->version || cmdline->help) { | |
diff --git a/src/winmain.c b/src/winmain.c | |
t@@ -289,6 +289,9 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevI… | |
get_cmdline(lpszCmdParam, &argc, &argv); | |
cmdline = GeneralStartup(argc, argv); | |
+ if (cmdline->logfile) { | |
+ AssignName(&Log.File, cmdline->logfile); | |
+ } | |
OpenLog(); | |
SoundInit(); | |
if (cmdline->version || cmdline->help) { |