summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-03 01:51:33 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-03 07:49:11 -0700
commit0c74f7a2c8e0af7ac006c16fc9ef05e5f9245518 (patch)
tree6e282217d0e6a9bffa6c438bc718bd39cf38e39b /core/dive.h
parent6bab8267ebaa324ff0cbd32303ad04ae4bc998b9 (diff)
downloadsubsurface-0c74f7a2c8e0af7ac006c16fc9ef05e5f9245518.tar.gz
win32: optimize the console and logging logic
Currently one has to explicitly use --win32console and/or --win32log to enable a dedicated console (a console window that opens next to the Subsurface window) or to enable file logging on Win32. This patch makes the following changes: - removes the --win32* command line arguments - removes the dedicated console window support - if the app starts from a shortcut and not from a console, always redirect stderr and stdout to _err & _out log files - if the app starts from a console redirect stderr and stdout to that console Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dive.h b/core/dive.h
index d3b755491..0bbbd6b0c 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -767,7 +767,7 @@ extern int subsurface_access(const char *path, int mode);
extern int subsurface_stat(const char* path, struct stat* buf);
extern struct zip *subsurface_zip_open_readonly(const char *path, int flags, int *errorp);
extern int subsurface_zip_close(struct zip *zip);
-extern void subsurface_console_init(bool dedicated, bool logfile);
+extern void subsurface_console_init(void);
extern void subsurface_console_exit(void);
extern bool subsurface_user_is_root(void);