Mercurial > hg > easaier-soundaccess
changeset 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 | 0387f53242b2 |
children | 23d2b3acff2c |
files | sv/main/main.cpp |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
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;