diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-02-02 21:50:47 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-02-03 09:24:42 -0800 |
commit | 4a894e0713910e68a8744a3b34b95a91b31cabde (patch) | |
tree | a0a0b78e286d5b46112eaa8c2562aac5abd3b709 /core/macos.c | |
parent | 7c8461a328c6d93a89aeb4358bacf0201e940f35 (diff) | |
download | subsurface-4a894e0713910e68a8744a3b34b95a91b31cabde.tar.gz |
Win32: add the --win32log option to log stdout and stderr to files
Adding --win32log as the first command line option on Windows
will now log all stdout and stderr output to the files
subsurface_err.log and subsurface_out.log in the working directory.
This change required a new argument 'bool logfile' to be added to:
subsurface_console_init() which is defined in all platform files
(linux.c, macos.c, etc.)
Example usage:
subsurface.exe --win32log -v -v -v
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'core/macos.c')
-rw-r--r-- | core/macos.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/macos.c b/core/macos.c index 500412cd8..20a575b67 100644 --- a/core/macos.c +++ b/core/macos.c @@ -201,9 +201,10 @@ int subsurface_zip_close(struct zip *zip) } /* win32 console */ -void subsurface_console_init(bool dedicated) +void subsurface_console_init(bool dedicated, bool logfile) { - (void) dedicated; + (void)dedicated; + (void)logifle; /* NOP */ } |