Commit Graph

18 Commits

Author SHA1 Message Date
Timothee 'TTimo' Besset d97f00e0e9 use XDG_STATE_HOME if set for g_strTempPath (.pid file, radiant.log etc.), and related cleanups 2023-02-19 15:35:05 -06:00
Thomas Debesse 8aeff6b09a Do not do `using namespace std` to avoid type conflict
The STL now defines `std::byte` so doing `using namespace std`
will conflict will custom definition of `byte`, which this
legacy code is full of.

It looks like NetRadiant went the route of making explicit
usage of `std::` prefixed types and did not renamed the
custom definition of byte, so doing the same reduces diff
noise between the two trees.

This also makes the code future proof if the STL decides
to define some other types with common name.

This patches replaces all usages of `map`, `pair` and
`vector` with `std::map`, `std::pair` and `std::vector`
and remove the `using namespace std` line in `stl_check.h`.

```
libs/mathlib.h:132:44: error: reference to ‘byte’ is ambiguous
  132 | void NormalToLatLong( const vec3_t normal, byte bytes[2] );
      |                                            ^~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:61,
                 from /usr/include/c++/11/bits/char_traits.h:39,
                 from /usr/include/c++/11/ios:40,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/iostream:39,
                 from libs/missing.h:76,
                 from radiant/qe3.h:40,
                 from radiant/stdafx.h:39,
                 from radiant/bp_dlg.cpp:28:
/usr/include/c++/11/bits/cpp_type_traits.h:404:30: note: candidates are: ‘enum class std::byte’
  404 |   enum class byte : unsigned char;
      |                              ^~~~
```
2022-07-14 17:18:51 +02:00
Jay Dolan c064a1c0a4 Fix string comparison fail for key "model" 2020-11-02 17:43:23 -05:00
Timothee Besset 0ea61635b6 Load .MAP as well, in addition to .. .map 2018-01-27 15:14:42 -06:00
Thomas Debesse a3773852a4 preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
Christophe Mateos 45dd743f81 Move "All supported types" to top
Like usual browse menu. Migrated "as-is" (just for the model browser for
now)
2017-05-24 21:23:47 +02:00
Pan7 9d9a0581e9 Feature: Make Hollow Touch/Overlap 2017-02-27 03:49:49 +01:00
Timothee "TTimo" Besset c918a29cd0 Merge pull request #352 from Pan7/Sys_FPrintf
Using Sys_FPrintf with SYS_WRN and SYS_ERR
2016-06-11 13:01:13 -05:00
Pan7 5105fc5db8 Using Sys_FPrintf with SYS_WRN and SYS_ERR 2016-05-16 21:20:20 +02:00
Timothee "TTimo" Besset 376eb6c0ac issue #343 - was purging the wrong model from cache, causing pointers to freed memory 2016-04-24 16:50:11 -05:00
jdolan db226fb8d8 Add .obj as a supported filetype because the rest we support are already there. 2013-06-29 10:15:51 -04:00
Timothee Besset 5d08c3e9ec add *.ogg and *.wav to the sound types selection 2013-06-22 21:56:11 +01:00
Timothee 'TTimo' Besset a2a93d30df fix bobtoolz patch caulk crash 2012-04-22 19:43:26 -05:00
Timothee TTimo Besset 830125fad0 uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
mattn 204566e81e * applied patch by StefanV (from mailinglist) that fixes an error in config.py (broke compilation) and some string conversion warnings
* fixes some more string conversions warnings in bobtoolz
* fixed unresolved symbols in bobtoolz and gtkgensurf (due to the above mentioned patch where the prototypes were not updated)


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@320 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-09-06 08:35:17 +00:00
mattn eaa3e3169f * added filter api to create new filters from within plugins
* TTimo, please have a look at the mainframe.cpp part


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@208 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-03-16 09:42:56 +00:00
TTimo 33efc90892 more eol-style
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@185 8a3a26a2-13c4-0310-b231-cf6edde360e5
2007-11-04 03:51:54 +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