# HG changeset patch # User lbajardsilogic # Date 1181296292 0 # Node ID 23d2b3acff2c53ed60d9ad0f9dbf241e79a05f27 # Parent 3a99e1897d18ea8a6050d81200fc471a8cc06394 add -log option to redirect stderr in a log file. Command to use: sound-access.exe -log 2> log.txt diff -r 3a99e1897d18 -r 23d2b3acff2c system/Init.cpp --- a/system/Init.cpp Fri Jun 08 09:51:06 2007 +0000 +++ b/system/Init.cpp Fri Jun 08 09:51:32 2007 +0000 @@ -73,14 +73,15 @@ #endif -extern void svSystemSpecificInitialisation() +extern void svSystemSpecificInitialisation(bool redirect) { #ifdef Q_WS_X11 XSetErrorHandler(handle_x11_error); #endif #ifdef Q_WS_WIN32 - redirectStderr(); + if (redirect) + redirectStderr(); QFont fn = qApp->font(); fn.setFamily("Tahoma"); qApp->setFont(fn); diff -r 3a99e1897d18 -r 23d2b3acff2c system/Init.h --- a/system/Init.h Fri Jun 08 09:51:06 2007 +0000 +++ b/system/Init.h Fri Jun 08 09:51:32 2007 +0000 @@ -16,6 +16,6 @@ #ifndef _SV_SYSTEM_INIT_H_ #define _SV_SYSTEM_INIT_H_ -extern void svSystemSpecificInitialisation(); +extern void svSystemSpecificInitialisation(bool redirect); #endif