Alibek Omarov
0ba1a8e7bc
engine: cfgscript: reduce copypasted code
4 years ago
Alibek Omarov
26404315cb
engine: filesystem: avoid unnecessary padding in private structs
4 years ago
Alibek Omarov
be1958473b
engine: filesystem: fix liblistgam converting to gameinfo when rodir was enabled
4 years ago
Alibek Omarov
331a2046c8
engine: net: fix delta incorrect casts when field is signed
4 years ago
Alibek Omarov
9120d40ce5
engine: redefine CVAR_DEFINE_AUTO through CVAR_DEFINE macro
4 years ago
Alibek Omarov
155eb1ba58
engine: fix various warnings
4 years ago
Alibek Omarov
efaf7ac622
engine: fix UB on MSG_BigShort
4 years ago
Alibek Omarov
fe2c4af8c2
engine: soundlib: make Sound_GetApproxWavePlayLen behave like in GoldSrc
4 years ago
Alibek Omarov
3e7dd30fd7
engine: soundlib: use stdint definitions for WAV headers
4 years ago
Alibek Omarov
e77957bc81
client: decrease visibility of some cvars
4 years ago
Andrey Akhmichin
75210b1ff6
engine: common: filesystem.c: add binary search for files from zip-archives.
4 years ago
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).
4 years ago
Alibek Omarov
d7b3c7b681
engine: proper order for XASH_LOW_MEMORY definitions
4 years ago
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.
4 years ago
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:]]\+$//' {} \+
```
4 years ago
Alibek Omarov
766ef84af4
engine: ref: try to bruteforce all available renderers if we're failed to load requested one
4 years ago
Alibek Omarov
61fe9fd1fe
engine: fix some left shifts on signed integers
4 years ago
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
4 years ago
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.
4 years ago
Andrey Akhmichin
abd9778ef3
engine: common: simplified strings operations.
4 years ago
Andrey Akhmichin
c53985c0bc
engine: common: imagelib: img_tga.c: refactor Targa encoder.
4 years ago
Alibek Omarov
2aaa6c6e04
public: build: add ARMv8 32-bit support, in case of someone actually uses it
4 years ago
Alibek Omarov
d4003f9527
crashhandler: fix build
4 years ago
Alibek Omarov
d30605c09f
engine: fixes for dedicated
4 years ago
Alibek Omarov
9ff6d44178
crashhandler: remove unknown arch error
4 years ago
Andrey Akhmichin
065811cc46
engine: common: filesystem.c: do not load zip-archives with zip extension as bullet proof.
4 years ago
Andrey Akhmichin
e69956c9ea
engine: common: imagelib: img_png.c: set IMAGE_HAS_ALPHA flag only for RGBA images.
4 years ago
mittorn
bef873e1f8
platform/android: enable dynamic dladdr, fix build
4 years ago
Alibek Omarov
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
5 years ago
Alibek Omarov
a641488b98
engine: imagelib: img_bmp: add paranoid checks for estimated file size to not exceed real buffer. Needs proper testing.
5 years ago
Alibek Omarov
46b0590e4e
engine: imagelib: refactor to use stdint.h definitions, use spaces for alignment instead of tabs
5 years ago
Alibek Omarov
9b22149509
engine: host: execute server.cfg right before main loop starts
5 years ago
Alibek Omarov
e0dfc4c0b4
launcher: oops, enable NOCONHOST only for Win32
5 years ago
Alibek Omarov
732cb925e5
launcher: use engine definitions, enable cocon_win by default, fix Com_LoadLibrary to COM_LoadLibrary, fix memory leak, fix incorrect argv
5 years ago
lewa_j
deb7591d1e
Fix SaveBMP
5 years ago
Alibek Omarov
82c54b1b54
engine: disallow zero-width strings for getenv()
5 years ago
Alibek Omarov
8d942bcc86
xash3d_types: start refactoring engine to use stdint.h types
5 years ago
Aimless Wanderer
51a45d745e
engine: userconfig.d support from old engine
5 years ago
Alibek Omarov
dc2ab714f6
mpg123: backport some UB fixes from upstream
5 years ago
Alibek Omarov
4c6fd79f07
tgmath: remove including tgmath.h in everything that uses xash3d_mathlib, as it's included already
5 years ago
Alibek Omarov
3d9c482eae
host: add -help, fix #136
5 years ago
Andrey Akhmichin
248c8a745c
engine: common: imagelib: split imagelib.h.
5 years ago
Andrey Akhmichin
e96ea719d5
engine: common: imagelib: use rgba_t as RGBA palette type.
5 years ago
nillerusr
4021d7bf5c
imagelib: fix unaligned access
5 years ago
mittorn
68472f90eb
filesystem: disable XASH_REDUCE_FD where it not needed, fix null pointer deference
5 years ago
Andrey Akhmichin
e3b547c8a9
public: rename mathlib to xash3d_mathlib.
5 years ago
Andrey Akhmichin
01e2ea24da
engine: common: imagelib: img_png.c: add a missing return statement.
5 years ago
Andrey Akhmichin
f5783ae1df
engine: common: imagelib: img_tga.c: check pixel type before buffer allocation.
5 years ago
mittorn
27da2e10ff
filesystem: fix const cast
5 years ago
mittorn
7d0e45b507
network: restore WSAsize_t define for win32
5 years ago