Garux
64f6b4a4ac
fix some warnings
2020-02-07 23:00:19 +03:00
Garux
325a46a102
wrap 'string empty' logic
2020-02-05 18:20:13 +03:00
Garux
c7f1391177
wrap Q_stricmp use
2020-02-04 04:33:58 +03:00
Garux
cf98275ee4
wrap strcmp use
2020-02-04 03:40:27 +03:00
Garux
eb70faddc8
use standard C bool type:
...
get rid of qfalse, qtrue aliases everywhere
replace qboolean in q3map2, q3data
redefine qboolean type in q2 tools, mbspc
2020-02-03 01:15:30 +03:00
Garux
e5d040a770
fix simple warnings
2020-02-02 14:53:18 +03:00
Garux
e6ce77d031
use capital letter in strClear, strEmpty, strIstr to lessen names collision probability
2020-01-28 21:05:41 +03:00
Garux
80e95ac165
refactor paths related codes
2020-01-26 19:01:57 +03:00
Garux
d320ac3a4b
optimize copystring(), use it
2020-01-10 20:43:15 +03:00
Zack Middleton
c9a33917e3
q3map2: fix crash if command-line argument is missing
...
Running `q3map2 -fs_forbiddenpath -v mapname.map` would crash because
-v gets replaced with NULL in main().
Running `q3map2 -threads` would crash because missing next argument
for number of threads.
2019-12-28 12:06:36 +03:00
Garux
5d46d88d2d
refactor autopk3.c
...
generalize Q_stricmp, Q_strncasecmp defines instead of local implementations
replace Q_strncpyz, Q_strcat, Q_strncat with strlcpy, strlcat versions: strcpyQ, strcatQ, strncatQ
fix ExtractFilePath, ExtractFileBase, ExtractFileExtension edge case (empty path string)
ExtractFileBase() : mimic StripExtension() logic
BeginMapShaderFile() : use ExtractFileBase(), ExtractFilePath()
2019-12-27 06:01:28 +03:00
Garux
8373782b75
generalize FixDOSName function and its use
2019-12-20 20:10:49 +03:00
Garux
ed4c8c2044
Q3map2:
...
* new area lights backsplash algorithm ( by Jelvan ), hijacking temp area lights ( to simulate volumetric behavior of source ones )
* fix: create backsplash for area lights, while q3map_lightsubdivide'ing too
* no backsplash for area lights, if surf == sky
* report patches count in -info
* -exportents to exports entities to a .ent file
* unvanquished game support
* -fs_basepath: can be used more than once to look in multiple paths (Sets the given path as main directory of the game)
* -fs_game: can be used more than once (Sets a different game directory name (default for Q3A: baseq3))
* -fs_pakpath <dir>: Specify additional custom path to assets (can be used more than once to look in multiple paths)
* fix undocumented unexpected LokiInitPaths
* -help option (-h, --help)
2017-08-02 09:16:24 +03:00
Garux
eef3995202
Q3map2:
...
* -pk3: autopackager mode(complete Q3 support); bsp path as input; switches: -dbg - talkative mode, -png - include pngs, at highest priority
is using file 'gamename.exclude' to exclude vanilla game resources
tip: ioq3, netradiant, compiler (and packager) treat *.pk3dir directories as separate pk3 files
2017-08-01 13:51:52 +03:00
Rudolf Polzer
b7e36c120e
Merge remote-tracking branch 'github/master'
...
Conflicts:
.gitignore
config.py
libs/synapse/synapse.cpp
plugins/imagehl/lbmlib.cpp
plugins/surface_heretic2/surfacedialog.cpp
plugins/surface_ufoai/surfacedialog.cpp
radiant/brushscript.cpp
radiant/main.cpp
radiant/preferences.cpp
tools/quake3/common/cmdlib.c
tools/quake3/common/cmdlib.h
tools/quake3/q3map2/path_init.c
windows_compile_guide/index.html
2012-03-27 12:11:37 +02:00
Rudolf Polzer
e4287c28bb
my own uncrustify run
2012-03-27 12:03:21 +02:00
Ben Noordhuis
3a959349ac
q3map2: harden UNIX path sniffer against buffer overflows
2012-03-18 02:17:09 +01:00
Ben Noordhuis
808e1c9f6f
q3map2: fix dangling pointer dereference
...
`last` was used but not initialized.
Also fixes a segmentation fault if PATH is not in the environment.
2012-03-18 02:17:09 +01:00
Ben Noordhuis
d7e9dab03d
q3map2: getpwent() result may not be persistent
...
Use getpwuid_r() instead and store the path in a static buffer.
2012-03-18 02:17:09 +01:00
Timothee TTimo Besset
830125fad0
uncrustify! now the code is only ugly on the *inside*
2012-03-17 15:01:54 -05:00
Rudolf Polzer
865fc23ebf
fix compile errors
2011-05-15 22:26:46 +02:00
Rudolf Polzer
d8518d0278
fix error
2011-05-15 22:24:57 +02:00
Rudolf Polzer
f2ba0cbb0a
support passing the home path to q3map2 as -fs_home (home dir only, ends with /. to request a dotdir name) and -fs_homepath (full path, including /.gamename)
2011-05-01 18:49:33 +02:00
Rudolf Polzer
410909df7d
q3map2: accept -fs_home /home/rpolzer/.xonotic to set the home dir
2011-05-01 18:43:34 +02:00
Rudolf Polzer
a15293c86f
untested changes so DP might work with this again. Who knows if they even compile.
2011-04-29 10:55:57 +02:00
Rudolf Polzer
d4500cb5d9
fix two more bugs
2011-04-20 17:50:29 +02:00
Rudolf Polzer
50e0a3fb24
add a missing #include
2011-04-20 17:49:36 +02:00
Rudolf Polzer
9b15142ec2
q3map2: use "My Games" directory if exists on Win32
2011-04-20 17:44:27 +02:00
rambetter
1f2be9e1a6
In function AddGamePath() in path_init.c for q3map2,
...
only adding path if it's not already added (remove duplicates).
It's cleaner this way.
git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@432 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-01-20 14:35:44 +01:00
rambetter
083f7c7d6a
In function AddGamePath() in path_init.c for q3map2,
...
only adding path if it's not already added (remove duplicates).
It's cleaner this way.
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@432 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-01-20 07:15:47 +00:00
rpolzer
5ec3a47e10
q3map2 is now waring free
2010-10-05 10:57:07 +02:00
Rudolf Polzer
9ca6835a26
vfspk3 in q3map2: also support -fs_forbiddenpath
2010-08-07 17:32:57 +02:00
divverent
afe3aebe6f
fix a stupid error in moving paths
...
git-svn-id: svn://svn.icculus.org/netradiant/trunk@226 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-03-23 13:48:12 +00:00
divverent
3f92bea422
add an option -fs_homebase to override homebase path in the game pack (for use by gamepacks so they need no specific q3map2 change to use the right home dir)
...
git-svn-id: svn://svn.icculus.org/netradiant/trunk@221 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-03-16 12:26:23 +00:00
rpolzer
107765f0e4
initial
...
git-svn-id: svn://svn.icculus.org/netradiant/trunk@1 61c419a2-8eb2-4b30-bcec-8cead039b335
2008-09-13 18:28:57 +00:00
Forest Hale
88cea027e6
ported over the 1.5 branch version of q3map2 which is newer
...
made Visual Studio files work in VS2005 Express
fixed a ton of warnings in VS2005 Express
fixed some compile problems on OpenSUSE 11.0
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@302 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-07-25 07:31:37 +00:00
TTimo
9998050654
set eol-style
...
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@183 8a3a26a2-13c4-0310-b231-cf6edde360e5
2007-11-04 03:34:51 +00:00
TTimo
8037810110
transfer from internal tree r5311 branches/1.4-gpl
...
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@177 8a3a26a2-13c4-0310-b231-cf6edde360e5
2007-09-12 18:54:28 +00:00