Mercurial > hg > easaier-soundaccess
diff sv/main/main.cpp @ 62:3a99e1897d18
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:06 +0000 |
parents | b3c3a5fa185f |
children | 66af7c1b10d9 |
line wrap: on
line diff
--- a/sv/main/main.cpp Tue May 29 09:26:15 2007 +0000 +++ b/sv/main/main.cpp Fri Jun 08 09:51:06 2007 +0000 @@ -214,7 +214,14 @@ signal(SIGQUIT, signalHandler); #endif - svSystemSpecificInitialisation(); + bool redirectStderr = true; + + if (args.contains("-log")) + { + redirectStderr = false; + } + + svSystemSpecificInitialisation(redirectStderr); bool audioOutput = true; bool oscSupport = true;