diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-11-03 01:51:33 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-11-03 07:49:11 -0700 |
commit | 0c74f7a2c8e0af7ac006c16fc9ef05e5f9245518 (patch) | |
tree | 6e282217d0e6a9bffa6c438bc718bd39cf38e39b /core/subsurfacestartup.c | |
parent | 6bab8267ebaa324ff0cbd32303ad04ae4bc998b9 (diff) | |
download | subsurface-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/subsurfacestartup.c')
-rw-r--r-- | core/subsurfacestartup.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/subsurfacestartup.c b/core/subsurfacestartup.c index 91d2098fd..7fbfbdc57 100644 --- a/core/subsurfacestartup.c +++ b/core/subsurfacestartup.c @@ -197,8 +197,6 @@ static void print_help() printf("\n --survey Offer to submit a user survey"); printf("\n --user=<test> Choose configuration space for user <test>"); printf("\n --cloud-timeout=<nr> Set timeout for cloud connection (0 < timeout < 60)"); - printf("\n --win32console Create a dedicated console if needed (Windows only). Add option before everything else"); - printf("\n --win32log Write the program output to subsurface.log (Windows only). Add option before everything else\n\n"); } void parse_argument(const char *arg) @@ -254,10 +252,6 @@ void parse_argument(const char *arg) ++force_root; return; } - if (strcmp(arg, "--win32console") == 0) - return; - if (strcmp(arg, "--win32log") == 0) - return; /* fallthrough */ case 'p': /* ignore process serial number argument when run as native macosx app */ |