23974d24c3
engine: try to avoid broken -Werror=duplicated-branches for old GCCs 2
2021-03-24 19:11:17 +03:00
868947cbb4
engine: try to avoid broken -Werror=duplicated-branches for old GCCs
2021-03-23 23:49:08 +03:00
f2ab4c0d0e
engine: cfgscript: don't let scr vars overwrite existing variables
...
we don't use them for storing settings anyway
only for reference in UI
2021-03-15 03:39:20 +03:00
0ba1a8e7bc
engine: cfgscript: reduce copypasted code
2021-03-15 03:38:10 +03:00
26404315cb
engine: filesystem: avoid unnecessary padding in private structs
2021-03-11 21:46:00 +03:00
be1958473b
engine: filesystem: fix liblistgam converting to gameinfo when rodir was enabled
2021-03-11 21:42:35 +03:00
331a2046c8
engine: net: fix delta incorrect casts when field is signed
2021-03-10 21:51:21 +03:00
9120d40ce5
engine: redefine CVAR_DEFINE_AUTO through CVAR_DEFINE macro
2021-03-09 23:58:21 +03:00
155eb1ba58
engine: fix various warnings
2021-03-07 03:40:01 +03:00
efaf7ac622
engine: fix UB on MSG_BigShort
2021-03-07 03:39:16 +03:00
fe2c4af8c2
engine: soundlib: make Sound_GetApproxWavePlayLen behave like in GoldSrc
2021-03-07 02:49:40 +03:00
3e7dd30fd7
engine: soundlib: use stdint definitions for WAV headers
2021-03-07 02:48:56 +03:00
e77957bc81
client: decrease visibility of some cvars
2021-03-06 23:40:04 +03:00
75210b1ff6
engine: common: filesystem.c: add binary search for files from zip-archives.
2021-03-01 19:53:07 +03:00
Ivan Avdeev
1b426b67e7
partially fix amd64 build on windows
...
Quality of this commit is questionable. I have no idea whether what I did
here makes sense or not.
But it compiles and runs (provided with hlsdk-xash3d amd64 build, which
is another story).
This omits necessary waf changes that are necessary to make a valid
64-bit build. Apparently it's not enough to just pass `-8` on Windows,
you also need to hack wscript to add `x64` target to MSVC. I'll do that
later when I figure out how.
This change is a precursor for RTX Vulkan effort --
VK_KHR_ray_tracing_pipeline and friends are only available on 64-bit
nvidia drivers (no idea about AMD, pls send GPUs onegai).
2021-02-26 16:04:45 +03:00
d7b3c7b681
engine: proper order for XASH_LOW_MEMORY definitions
2021-01-29 03:24:41 +03:00
Gleb Mazovetskiy
6d614e028a
Fix COM_LibraryError newline handling
...
1. Do not append a trailing newline to the result of COM_GetLibraryError.
2. Fix call sites.
2021-01-07 17:33:09 +03:00
Gleb Mazovetskiy
5e0a0765ce
Trim all trailing whitespace
...
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.
Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.
`git blame` becomes less useful on these lines but it already isn't very useful.
Commands:
```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
2021-01-04 20:55:10 +03:00
766ef84af4
engine: ref: try to bruteforce all available renderers if we're failed to load requested one
2021-01-02 17:59:53 +03:00
61fe9fd1fe
engine: fix some left shifts on signed integers
2021-01-02 05:01:51 +03:00
Gleb Mazovetskiy
2106eef4b2
system.c: Fix Sys_Warn/Error
text buffer sizes
...
This was using the wrong define
E.g. `-dev 2 -help` output did not fit into it
2021-01-02 03:43:17 +03:00
Gleb Mazovetskiy
69e15e9c7b
gl4es: Fix so
name and add to renderer collector
...
1. `libref_gles2_gl4es.so` -> `libref_gl4es.so` because this is what's
passed to `R_LoadRenderer`.
2. Add `gl4es` to `DEFAULT_RENDERERS` so that `R_CollectRendererNames`
finds it.
2020-12-29 00:44:42 +03:00
abd9778ef3
engine: common: simplified strings operations.
2020-11-28 23:20:14 +03:00
c53985c0bc
engine: common: imagelib: img_tga.c: refactor Targa encoder.
2020-11-18 18:54:25 +05:00
2aaa6c6e04
public: build: add ARMv8 32-bit support, in case of someone actually uses it
2020-09-28 16:17:08 +03:00
d4003f9527
crashhandler: fix build
2020-08-23 20:33:17 +03:00
d30605c09f
engine: fixes for dedicated
2020-08-23 19:02:15 +03:00
9ff6d44178
crashhandler: remove unknown arch error
2020-08-23 19:02:15 +03:00
065811cc46
engine: common: filesystem.c: do not load zip-archives with zip extension as bullet proof.
2020-07-27 18:59:50 +03:00
e69956c9ea
engine: common: imagelib: img_png.c: set IMAGE_HAS_ALPHA flag only for RGBA images.
2020-07-22 14:37:40 +03:00
bef873e1f8
platform/android: enable dynamic dladdr, fix build
2020-07-08 08:45:24 +07:00
0db1a7743d
engine: try to fix -Wmaybe-uninitialized that may be enabled with -Wuninitialized. Diagnostic is prone to false-positives, as compiler don't have enough data for this
2020-05-12 02:00:34 +03:00
a641488b98
engine: imagelib: img_bmp: add paranoid checks for estimated file size to not exceed real buffer. Needs proper testing.
2020-05-11 03:02:13 +03:00
46b0590e4e
engine: imagelib: refactor to use stdint.h definitions, use spaces for alignment instead of tabs
2020-05-11 02:28:04 +03:00
9b22149509
engine: host: execute server.cfg right before main loop starts
2020-05-02 19:26:41 +03:00
e0dfc4c0b4
launcher: oops, enable NOCONHOST only for Win32
2020-04-30 20:48:33 +03:00
732cb925e5
launcher: use engine definitions, enable cocon_win by default, fix Com_LoadLibrary to COM_LoadLibrary, fix memory leak, fix incorrect argv
2020-04-25 21:28:19 +03:00
lewa_j
deb7591d1e
Fix SaveBMP
2020-04-25 21:19:58 +03:00
82c54b1b54
engine: disallow zero-width strings for getenv()
2020-04-19 13:02:51 +03:00
8d942bcc86
xash3d_types: start refactoring engine to use stdint.h types
2020-04-19 13:02:51 +03:00
51a45d745e
engine: userconfig.d support from old engine
2020-04-14 20:08:08 +03:00
dc2ab714f6
mpg123: backport some UB fixes from upstream
2020-03-30 00:46:39 +03:00
4c6fd79f07
tgmath: remove including tgmath.h in everything that uses xash3d_mathlib, as it's included already
2020-03-30 00:42:10 +03:00
3d9c482eae
host: add -help, fix #136
2020-03-04 08:55:22 +03:00
3c8ce640c4
Merge neko/mathlib into master
2020-03-04 05:38:30 +03:00
248c8a745c
engine: common: imagelib: split imagelib.h.
2020-03-03 05:03:15 +05:00
7c47bfd0db
Merge pull request #122 from nekonomicon/palette
...
engine: common: imagelib: use rgba_t as RGBA palette type.
2020-03-02 21:44:32 +03:00
e96ea719d5
engine: common: imagelib: use rgba_t as RGBA palette type.
2020-03-02 15:07:54 +05:00
3ce16227ba
Merge pull request #123 from nekonomicon/tga
...
engine: common: imagelib: img_tga.c: check pixel type before buffer allocation.
2020-02-18 03:52:09 +07:00
4021d7bf5c
imagelib: fix unaligned access
2020-02-17 23:25:39 +03:00