yquake2remaster/src
Yamagi Burmeister 7d08906bca Reimplement the portable binaries stuff.
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!
2017-07-24 11:15:00 +02:00
..
backends Reimplement the portable binaries stuff. 2017-07-24 11:15:00 +02:00
client Correct some missindentions pointed out by recent GCC versions. 2017-06-30 13:52:09 +02:00
common Reimplement the portable binaries stuff. 2017-07-24 11:15:00 +02:00
game Merge pull request #181 from DanielGibson/render_dll 2017-04-18 17:12:40 +02:00
server Refactoring the search path magic, step 3: Remove now used code. 2017-07-23 08:47:41 +02:00