From 4a894e0713910e68a8744a3b34b95a91b31cabde Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 2 Feb 2017 21:50:47 +0200 Subject: 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 --- core/linux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/linux.c') diff --git a/core/linux.c b/core/linux.c index b81f6bf53..b050472a6 100644 --- a/core/linux.c +++ b/core/linux.c @@ -215,9 +215,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)logifle; /* NOP */ } -- cgit v1.2.3-70-g09d2