Alibek Omarov
21174dc9cf
engine: library: fix missing return
3 years ago
Alibek Omarov
894726d699
engine: disable custom DLL loader for everything except 32-bit x86
3 years ago
a1batross
4abe1a77f4
engine: filesystem: fix missing newline in debug message
3 years ago
Alibek Omarov
6e0d372504
engine: fix FunctionFromName on MSVC, fix memory leak
3 years ago
Alibek Omarov
91ee9bd32a
engine: merge tests for imagelib
3 years ago
Alibek Omarov
6ea25b8194
engine: add simple unit-testing (v3?)
3 years ago
Alibek Omarov
5bc4359a2f
engine: implement platform neutral saves, now we can load saves made in Linux on Windows and vice-versa
3 years ago
Alibek Omarov
37c5dfa49f
engine: generalize maps command and map command autocompletion
3 years ago
Alibek Omarov
9b1fccd1fa
engine: move Cbuf_Execute to ClientBegin stub for dedicated server, to avoid confusion
4 years ago
exstrim401
db3e71bfcc
engine: Removed unused Haiku variables
4 years ago
exstrim401
2b436dced0
engine: Remove XASH3D_MIRRORDIR
...
also make XASH3D_GAME for all platforms
4 years ago
exstrim401
a89f9fa181
engine: Haiku BeGameLauncher support
4 years ago
Alibek Omarov
6063149b93
engine: match DT_TIMEWINDOW_* behaviour to GoldSrc: it's always signed and it's more of an integer than float value
4 years ago
Alibek Omarov
a28d15e519
engine: match DT_TIMEWINDOW_* behaviour to GoldSrc: it's always signed and it's more of an integer than float value
4 years ago
Alibek Omarov
94959110f6
engine: fix typo, #488
4 years ago
Alibek Omarov
9313f7e80e
engine: replace pool pointer by pool handle
4 years ago
Alibek Omarov
43f1137565
engine: use substring search for mpfilter
4 years ago
exstrim401
b7922368bd
engine: Haiku OS support ( #478 )
4 years ago
Alibek Omarov
ddd48c420b
engine: decrease instanced baseline index by minus one to avoid zero offset which interpreted as no baseline at all
4 years ago
Alibek Omarov
d54a648792
engine: common: avoid sign bit loss in MSG_WriteBitLong
4 years ago
Alibek Omarov
585955eb19
engine: filesystem: add an error message if we're trying to get a handle of a compressed file in ZIP archive
4 years ago
Bohdan Shulyar
ddc4d76668
engine: common: add quote symbol escaping support ( #411 )
4 years ago
Alibek Omarov
f5e400de69
server: fix wrong xashid key on server, it's uuid now
4 years ago
Alibek Omarov
9c8059ea96
engine: imagelib: add BGRA saving for PNG
...
Fix incorrect output, when input format has alpha but flags don't
have set IMAGE_HAS_ALPHA.
Flags are meant to control output format, but input format may be arbitrary,
as usually given by video driver(screenshots, etc)
4 years ago
Alibek Omarov
c62db950f1
server: implement rcon redirection, add redirect command from old engine
4 years ago
Alibek Omarov
acaf15c5d2
engine: increase MAX_LEGACY_SERVERS limit
4 years ago
Alibek Omarov
23974d24c3
engine: try to avoid broken -Werror=duplicated-branches for old GCCs 2
4 years ago
Alibek Omarov
868947cbb4
engine: try to avoid broken -Werror=duplicated-branches for old GCCs
4 years ago
Alibek Omarov
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
4 years ago
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