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
3 years ago
Alibek Omarov
6f36edfd16
engine: various const qualifier fixes
3 years ago
Alibek Omarov
8445567ab4
engine: server: remove unused arguments passed to Con_Printf
3 years ago
Alibek Omarov
33d79ddb24
engine: server: fix possible array overruns
3 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
3 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
4 years ago
Alibek Omarov
8966172ce0
engine: server: avoid crash if map entity doesn't have classname (tfc map flagwar for example)
4 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
Alibek Omarov
4beba75159
engine: fix various compiler warnings
6 years ago
Jonathan Poncelet
d14ce5ac39
SV_LoadProgs: Fixed potential memory leak if function failed ( #46 )
...
SV_LoadProgs: Fixed potential memory leak if function failed
6 years ago
Alibek Omarov
c215b89923
Apply 4483 update
6 years ago
Alibek Omarov
fe14a360b4
engine: fix fs_offset_t/size_t conversion, const qualifiers
6 years ago
Alibek Omarov
62f04137a5
engine: hide ref calls under Host_IsDedicated checks, replace ref function ptr checks by \!Host_IsDedicated
6 years ago
Alibek Omarov
743c5ca8d5
engine: make dedicated work again
6 years ago
mittorn
bf2f829382
Disable Mod_ClearUserData in SV_UnloadProgs (it is still called on restart)
6 years ago
Alibek Omarov
97aba69ed0
ref: implement API interface for ref_gl, get rid of RenderAPI, RenderInterface and vgui_support API references
6 years ago
Alibek Omarov
99bd7c81da
ref: render code moved out of engine, doesn't compile, first API prototype
6 years ago
Alibek Omarov
4d63eb4413
sv_game: fix pfnSetModel theoretically may ignore precached models
6 years ago