HULL/code/sys
Tim Angus d133be28eb Add DEFAULT_RELATIVE_BASEDIR
Sys_BinaryPathRelative takes a parameter which is path concatenated with
Sys_BinaryPath, and resolved to a canonical path. The intended use case
is to facilitate the situation where you want the game data directory to
exist outside the same directory in which the binary lives, but relative
to it. More specifically, if you want to distriute multiple binaries for
different architectures, in the same tree, this allows for a means of
having said binaries in architecture subdirectories, with a shared data
directory, e.g.:

  ioq3/x86/ioquake3.exe etc.
  ioq3/x86_64/ioquake3.exe etc.
  ioq3/baseq3/pak0.pk3 etc.

Here, when building you would define DEFAULT_RELATIVE_BASEDIR=".." by
appending it to the build system CFLAGS, and then the executables will
by default look in their parent directory for the data.
2025-08-23 21:01:08 +01:00
..
con_log.c Fix reading crash log when log wraps around buffer 2017-10-08 07:19:07 -05:00
con_passive.c * Add con_log.c to log all console output 2007-11-30 18:32:52 +00:00
con_tty.c Remove CON_FlushIn function and where STDIN needs flushing, use tcflush POSIX function 2018-03-14 21:43:56 +00:00
con_win32.c Add arrow key support for win32 console 2015-01-26 02:39:59 -06:00
sys_autoupdater.c Fixed comment typo: s/until/under 2017-06-02 11:28:33 -04:00
sys_loadlib.h Replace USE_LOCAL_HEADERS with USE_INTERNAL_* 2025-07-29 17:32:18 +01:00
sys_local.h Add DEFAULT_RELATIVE_BASEDIR 2025-08-23 21:01:08 +01:00
sys_main.c Add DEFAULT_RELATIVE_BASEDIR 2025-08-23 21:01:08 +01:00
sys_osx.m Fix macOS client/server failing to start from terminal 2023-06-11 11:05:13 -04:00
sys_unix.c Add DEFAULT_RELATIVE_BASEDIR 2025-08-23 21:01:08 +01:00
sys_win32.c Add DEFAULT_RELATIVE_BASEDIR 2025-08-23 21:01:08 +01:00
win_manifest.xml Disable DPI scaling on Windows 2017-09-07 21:17:44 -05:00
win_resource.h * Merge unified-sdl to trunk 2007-09-05 18:17:46 +00:00
win_resource.rc Allow Windows icon to be set by defining WINDOWS_ICON_PATH 2025-08-01 22:36:51 +01:00