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
523798857b
engine: platform: fix opensles audio
4 years ago
Alibek Omarov
2edc8b16ae
engine: platform: fix sdl audio
4 years ago
Alibek Omarov
a93d9ac71c
engine: platform: simplify sound code
...
Remove SNDDMA_GetSoundtime, because it was mostly copypasted from one
platform code to another.
SNDDMA_GetDMAPos gets removed too, as we have dma.samplepos for that.
4 years ago
Alibek Omarov
c68af64fe5
engine: platform: fix access to uninitialized audio subsystem when -nosound was passed
4 years ago
Alibek Omarov
3d9a4560d5
client: make sound cvars statically allocated, to avoid access to invalid pointers in the future
4 years ago
Alibek Omarov
9120d40ce5
engine: redefine CVAR_DEFINE_AUTO through CVAR_DEFINE macro
4 years ago
Alibek Omarov
4db2aaffc4
client: port fix of spk/speak commands from old engine
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
0a818f3f3f
client: add waveplaylen console command like in GoldSrc
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
42f47f51b5
server: implement GetFileSize and GetApproxWavePlayLen from HLSDK 2.4
4 years ago
Alibek Omarov
aea9e8efa2
server: sv_validate_changelevel is deprecated now and disabled by default
...
If anyone wants this feature back, use +sv_validate_changelevel 1 in command line.
4 years ago
Alibek Omarov
585ae28dd2
server: fix some int <> unsigned int conversions
4 years ago
Alibek Omarov
a813be7d54
client: add cl_showpos
4 years ago
Alibek Omarov
e77957bc81
client: decrease visibility of some cvars
4 years ago
Alibek Omarov
ca84a1a10e
engine: fix building with SDL older than 2.0.4
4 years ago
Alibek Omarov
58edfbc485
engine: move cvars that expected to exist by client.dll from render dll to engine
...
Fixes #316
4 years ago
Alibek Omarov
fa555c1f09
server: add hardcoded list of chapters for HL, BS and OF, same as GoldSrc
...
Fix incomplete comment in save file when server DLL provides SV_SaveGameComment.
Fix possible buffer overflow when reading comment from save file.
4 years ago
Andrey Akhmichin
75210b1ff6
engine: common: filesystem.c: add binary search for files from zip-archives.
4 years ago
Alibek Omarov
b278751834
waf: upgrade to waifu 1.1.0
4 years ago
a1batross
3b192ca490
engine: sdl: don't free NULL vidmodes
4 years ago
SNMetamorph
56d5f08128
platform: win32: fixed crashes in COM_CheckLibraryDirectDependency
4 years ago
Alibek Omarov
cf5ebd128c
client: fix XASH_64BIT check
4 years ago
Ivan Avdeev
012d1fa8bd
fix USE_MMAP usage
...
should fix CI failures
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
SNMetamorph
8d50049db7
netgraph: fixed data usage graphs rendering
4 years ago
SNMetamorph
cba9fb1a07
vid_common: added vid_mode cvar for proper working VideoModes menu in game settings
4 years ago
Alibek Omarov
8090db2e75
netgraph: change netgraph buffer size for low memory mode
4 years ago
Alibek Omarov
d7b3c7b681
engine: proper order for XASH_LOW_MEMORY definitions
4 years ago
lewa_j
63c4b2748c
platform: win32: sdl: Fix zombie processes after early Sys_Error on windows+sdl
4 years ago
Gleb Mazovetskiy
c95e847890
Fix joystick trigger thresholds
...
They were negative by default but they should've been positive:
> a value ranging from -32768 to 32767. Triggers, however, range from 0 to 32767 (they never return a negative value).
https://wiki.libsdl.org/SDL_GameControllerGetAxis
This fixes LTRIGGER and RTRIGGER (L2/Zl and R2/Zr on most gamepads)
4 years ago
Gleb Mazovetskiy
4daa7c23a0
SDL2 GameController: Map axes to engine explicitly
4 years ago
Gleb Mazovetskiy
3e8e751dc7
GameController: Add separate D-Pad bindings
...
1. Adds separate D-Pad bindings so that they don't conflict with arrow
keys on the keyboard.
2. Also adds some basic defaults for gamepad buttons.
4 years ago
Gleb Mazovetskiy
12b579bc34
Fix R_CollectRendererNames
...
Previously R_CollectRendererNames left gaps in the `ref` subarrays.
This caused `R_Init` to fail in some cases because it iterates between `0` and `ref.numRenderers`.
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
a234888d44
Remove DEFAULT_(ACCELERATED|SOFTWARE)_RENDERER
...
This is no longer needed as we now use DEFAULT_RENDERERS order priority
and only try to load the detected renderers.
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
Gleb Mazovetskiy
3af742f103
in_touch.c: Fix -Wpointer-to-int-cast
4 years ago
Gleb Mazovetskiy
9452a389a5
SDL GameController: Hotplug and multiple gamepads
...
1. Process events from all game controllers.
2. Support controller hotplug.
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
33ba1f25f3
sys_linux.c: Increase buffer size for /proc/self/status
...
Fixes #263
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
Andrey Akhmichin
1332381e2d
engine: server: simplified strings operations.
4 years ago
Andrey Akhmichin
5aef09ce5d
engine: client: simplified strings operations.
4 years ago