changeset 63:23d2b3acff2c

add -log option to redirect stderr in a log file. Command to use: sound-access.exe -log 2> log.txt
author lbajardsilogic
date Fri, 08 Jun 2007 09:51:32 +0000
parents 3a99e1897d18
children b8be8b0e0c4b
files system/Init.cpp system/Init.h
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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