Alibek Omarov
1c9f333420
engine: server: fix attempting to free pool instead of an allocated memory
1 year ago
Alibek Omarov
52bd923d9d
engine: server: use generic host pool for temporary string allocation in case of PhysicAPI
1 year ago
Alibek Omarov
72fe214f49
engine: server: pre-process string before passing it to PhysicAPI AllocString, for compatibility with existing Xash3D games
1 year ago
Alibek Omarov
57499dea33
engine: server: static-ize sv_phys functions, set GAME_EXPORT attribute for PhysicAPI functions
1 year ago
Alibek Omarov
6b223f1325
engine: server: static-ize functions in sv_game. Set GAME_EXPORT attribute to server GameAPI functions
1 year ago
Alibek Omarov
c966589a50
engine: server: static-ize few game API functions, set GAME_EXPORT attribute
1 year ago
Alibek Omarov
4c02c25506
engine: server: do not assert if SetFatPVS/PAS were called without active player
...
Fixes issues with POD-Bot based bots.
1 year ago
Alibek Omarov
f49a2bc8f3
engine: server: move pfnWriteString character replacement hack to the ALLOC_STRING, the same way as GoldSrc does
1 year ago
Alibek Omarov
9e0d389d9e
engine: server: moved server cvars to static allocation
1 year ago
Alibek Omarov
5627dbbf34
engine: server: greatly simplify pfnWriteString implementation, it shouldn't modify input string
1 year ago
Alibek Omarov
a81fa84321
engine: server: replace some obvious va uses to temp buffer and Q_snprintf
2 years ago
Alibek Omarov
5ef97ae99e
engine: convert Info_SetValueForKey with va to Info_SetValueForKeyf
2 years ago
Alibek Omarov
ba1cf25314
engine: convert MSG_WriteString with va to MSG_WriteStringf
2 years ago
Alibek Omarov
375c06400c
engine: server: avoid unaligned access in pfnMessageEnd
2 years ago
Alibek Omarov
0984368a31
engine: server: GoldSrc compliant pfnServerExecute(), don't execute config.cfg for server!
2 years ago
fgsfds
25a1cb8ce7
Nintendo Switch support (again)
2 years ago
Alibek Omarov
6df25392b8
engine: server: redirect special sounds, detected by leading asterisk, into CHAN_STREAM
...
In GoldSrc this magic symbol means that we should not override channel this
sound is playing on. Originally handled on client but for both static and dynamic sounds
so let's redirect channel on server side instead.
2 years ago
Alibek Omarov
df1c9a5029
engine: simplify blue shift swapped lump check, change TestBmodelLumps to avoid reading past mod buffer
2 years ago
Alibek Omarov
cd813bbfbe
engine: server: do not apply sound precache check for sentences, as they may start with 0 index
2 years ago
SNMetamorph
5d73c6cb84
engine: server: backported enttools from old engine
2 years ago
Alibek Omarov
5678d9a253
engine: server: support MAP_ANON synonym for MAP_ANONYMOUS, disable allocating string pool near server library for OSX
2 years ago
Alibek Omarov
d202a6c572
engine: server: emulate pfnPEntityOfEntIndex bug only with explicitly enabled GoldSrc bug compatibility
2 years ago
Alibek Omarov
c326853617
engine: server: restore original PEntityOfEntIndex function, but still bug-compatible with GoldSrc
2 years ago
Alibek Omarov
f0a856d9c8
engine: server: fix writing message size for engine messages, as it's expected to be 2-bytes
2 years ago
Alibek Omarov
6f36edfd16
engine: various const qualifier fixes
2 years ago
Alibek Omarov
8445567ab4
engine: server: remove unused arguments passed to Con_Printf
2 years ago
Alibek Omarov
33d79ddb24
engine: server: fix possible array overruns
2 years ago
Alibek Omarov
51526948c0
engine: server: make PEntityOfEntIndex bug-compatible with GoldSrc
...
Add new undocumented GoldSrc eiface function, PEntityOfEntIndexAllEntities,
a bug-free version of PEntityOfEntIndex
Ref: https://github.com/ValveSoftware/halflife/issues/2272
2 years ago
Alibek Omarov
36d757c74a
engine: server: fix message trace output
3 years ago
Alibek Omarov
2fa964e939
engine: server: restore sv_trace_messages from old engine
3 years ago
Alibek Omarov
ca3544d559
engine: server: don't assert for NULL player in FatPAS/PVS if we don't need it
3 years ago
Alibek Omarov
a8c877c841
engine: server: fix ParseFile calls
3 years ago
SNMetamorph
ec95948b69
engine: server: implemented instant game library loading
3 years ago
Alibek Omarov
a547526e86
engine: fix some signed char cases
3 years ago
Alibek Omarov
49a20a9ac5
engine: server: fix memleak after previous commit
3 years ago
Alibek Omarov
8966172ce0
engine: server: avoid crash if map entity doesn't have classname (tfc map flagwar for example)
3 years ago
Alibek Omarov
42f47f51b5
server: implement GetFileSize and GetApproxWavePlayLen from HLSDK 2.4
4 years ago
Alibek Omarov
585ae28dd2
server: fix some int <> unsigned int conversions
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
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
Andrey Akhmichin
1332381e2d
engine: server: simplified strings operations.
4 years ago
mittorn
3a416636f1
engine: mark GAME_EXPORT's
5 years ago
mittorn
bbd033c254
lib: restore dll loader support
5 years ago
Alibek Omarov
0fe18ae6dc
engine: fix -Wmaybe-uninitialized
5 years ago
Alibek Omarov
9421457b3a
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
5 years ago
mittorn
37cba10c14
lowmemory: fix sentences
5 years ago
Wei Mingzhi
88772a1c34
engine: GetGameDir should return gamedir only. Add proper stub functions for some engine APIs.
5 years ago
Alibek Omarov
d382f6886d
engine: fix build
5 years ago
Alibek Omarov
2f8fec6b70
Remove trailing spaces, convert mistakenly put spaces to tabs. The most useful commit ever.
5 years ago