mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 14:30:48 +00:00
7d08906bca
The big problem with the old implementation was that stdout.txt and stderr.txt on Windows became available when nearly all the low level initialization was already done. Regardless if the client was in normal or in portable mode. Solve this by scanning the command line for the string '-portable'. If it's not found, stdout and stderr are redirected as early as possible. If found the global variable (*sigh*) is_portable is set to true. It's evaluated later on to set the cvar 'portable', which in turn is used be the filesystem to decide if the home directory should be added to the search path. Maybe we should remove the cvar and stick to the global variable. While at it change the maximum path length for qconsole.log from MAX_QPATH to MAX_OSPATH. At least on my Linux laptop MAX_QPATH is too short. This commit is still untested on Windows! |
||
---|---|---|
.. | ||
backends | ||
client | ||
common | ||
game | ||
server |