Thomas Debesse [Sun, 31 Dec 2017 17:30:47 +0000 (18:30 +0100)]
radiant/q3map2: add option to disable engine path and home path
- add radiant options to not load assets from
engine path and home path, it helps people to build
safe development environment
- add -fs_nobasepath and -fs_nohomepath to q3map2
to do the same
- make radiant pass these options to q3map2
Thomas Debesse [Sun, 31 Dec 2017 16:21:00 +0000 (17:21 +0100)]
radiant: add optional pakpath support
- add optional pakpath support
currently an hardcoded number of 5 extra pakpath are possible
this is still better than nothing
- if build profile use [ExtraQ3map2Args] keyword,
radiant pass the extra pakpaths options to q3map2
thanks to the -fs_pakpath switch that was added
in a previous commit
Zack Middleton [Sat, 4 Nov 2017 01:00:50 +0000 (20:00 -0500)]
Fix deprecated pango code always being used in glfont.cpp
The version check to see if the non-deprecated API is available,
PANGO_VERSION_CHECK(1,22,0), always returns false if pango-features.h
isn't included. This is because PANGO_VERSION_MAJOR, _MINOR, _MICRO
are not defined and are evaluated as 0 in the preprocessor code.
This commit fixes compiling on Debian 8 using libpango1.0-dev 1.36.8.
It was failing because deprecated function pango_ft2_get_context()
was not available (hidden in header file by PANGO_DISABLE_DEPRECATED).
Thomas Debesse [Sat, 14 Oct 2017 02:06:45 +0000 (04:06 +0200)]
fix game_packs_all target
Previously, game_packs_all target was just calling game_packs target, so it
was just installing free game packs, not all. It's now a proper target
setting proper environment variables before calling install-gamepacks.sh.
Thomas Debesse [Sat, 14 Oct 2017 02:01:02 +0000 (04:01 +0200)]
do not look for pack to install in already installed pack
Previously, the install-gamepacks.sh script was looking for all
subdirectories in games/ directory for *.games directory to
copy them inside games/ directory.
So, on first run,
it was looking for games/XonoticPack/xonotic.game
to copy it as games/xonotic.game
Then on second run,
it was looking for games/XonoticPack/xonotic.game
and also for games/xonotic.game/xonotic.game
which is silly.
Now the install-gamepacks.sh script is looking for games/*Pack
subdirectories only, it means all gamepacks must end with a
capitalized Pack suffix, which is already the case and is defined
in download-gamepacks.sh after all.
Thomas Debesse [Tue, 1 Aug 2017 19:13:15 +0000 (21:13 +0200)]
refresh VFS on model refresh, refresh models on VFS refresh
Before:
- refreshing textures were refreshing VFS (to load enabled texture packs)
but models were not refreshed
- refreshing textures were refreshing models but textures would be missing
since the VFS was not refreshed and texture packs would be not loaded
After:
- refreshing textures or models both refresh VFS, textures and models,
this way you don't anymore reload models without refreshing textures, or
refresh VFS without reloading models, etc.
Thomas Debesse [Tue, 1 Aug 2017 19:04:58 +0000 (21:04 +0200)]
dpk vfs: now loads DEPS file from game pack
- this way, there is no need to hardcode the loading of
tex-common or res-buildables to get common textures
and games buildables models, the game developers just
have to provide a DEPS file with their game pack, and
there is no need to enforce the name for this kind of
stuff
Thomas Debesse [Tue, 18 Jul 2017 08:31:20 +0000 (10:31 +0200)]
use NULL as sentinel instead of 0
- missing sentinel in function call
Some functions like g_object_set() expect a variable list
of arguments terminated with NULL sentinel, legacy code
was using 0 instead.