Garux
1f59dac119
manage strstr() use
2020-02-05 19:54:44 +03:00
Garux
325a46a102
wrap 'string empty' logic
2020-02-05 18:20:13 +03:00
Garux
9048028faa
wrap Q_strncasecmp use
2020-02-04 05:08:54 +03:00
Garux
416b1f7d54
delete some unused q3 cmdlib stuff
...
fix q3data -writedir
2020-02-04 02:07:13 +03:00
Garux
0290bd76fe
remove NeXT preprocessor conditions
2020-02-03 23:58:43 +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
e6ce77d031
use capital letter in strClear, strEmpty, strIstr to lessen names collision probability
2020-01-28 21:05:41 +03:00
Garux
25d94dbd2f
add and use path_set_extension()
...
fix -bsp crash with .bsp sent as map path
* fix: qer_editorimage, q3map_lightImage etc work with file names, containing period
(i.e. 'file.name.ext' names; don't StripExtension() twice in ImageLoad() for that)
2020-01-27 01:22:10 +03:00
Garux
80e95ac165
refactor paths related codes
2020-01-26 19:01:57 +03:00
Garux
09953b82be
minor tweaks
2020-01-24 03:48:13 +03:00
Garux
ba26c2d02b
add common functions:
...
strempty
strclear
path_is_absolute
path_get_filename_start
path_get_filename_base_end
path_get_extension
simplify functions:
DefaultExtension
StripFilename
StripExtension
ExtractFilePath
ExtractFileBase
ExtractFileExtension
2020-01-23 21:55:43 +03:00
Garux
0bc1a2a280
workaround safe_*alloc size print on error (was negative due to %i format specifier for size_t)
2020-01-23 07:25:12 +03:00
Garux
99bae99b36
add safe_calloc(), safe_calloc_info() functions, use them (optimization, code shortening)
2020-01-12 18:55:03 +03:00
Garux
d320ac3a4b
optimize copystring(), use it
2020-01-10 20:43:15 +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
Rudolf Polzer
7fc621fc78
Merge remote-tracking branch 'ttimo/master'
...
Conflicts:
config.py
libs/missing.h
plugins/model/cpicosurface.cpp
plugins/vfspk3/unzip.cpp
radiant/main.cpp
radiant/mainframe.cpp
radiant/mainframe.h
radiant/missing.cpp
radiant/pluginmanager.cpp
radiant/preferences.cpp
radiant/preferences.h
tools/quake3/common/cmdlib.c
tools/quake3/common/unzip.c
tools/quake3/q3map2/image.c
2012-05-07 12:32:31 +02:00
Timothee 'TTimo' Besset
c40e0b3e57
unused
2012-04-15 11:24:38 -05:00
Timothee 'TTimo' Besset
943424faa1
fix q3map2
2012-04-14 17:31:10 -05: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
997811d430
q3map2: fix bogus empty string checks
...
qdir is an array, not a pointer, so `if (qdir)` is always true.
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
d5a9782200
fix some more warnings
2010-10-05 15:04:45 +02:00
Rudolf Polzer
4487b4d44f
fix "ExpandPath called without qdir set" as qdir is never set in Xonotic/Nexuiz/any other nonquake
2010-10-05 11:24:42 +02:00
rpolzer
5ec3a47e10
q3map2 is now waring free
2010-10-05 10:57:07 +02:00
divverent
b222e12c36
Q_mkdir: create parent directories first
...
git-svn-id: svn://svn.icculus.org/netradiant/trunk@225 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-03-22 11:54:48 +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