mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
6bab8267eb
commit
0c74f7a2c8
8 changed files with 24 additions and 76 deletions
|
@ -194,10 +194,8 @@ int subsurface_zip_close(struct zip *zip)
|
|||
}
|
||||
|
||||
/* win32 console */
|
||||
void subsurface_console_init(bool dedicated, bool logfile)
|
||||
void subsurface_console_init(void)
|
||||
{
|
||||
(void)dedicated;
|
||||
(void)logfile;
|
||||
/* NOP */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue