Alibek Omarov
6b223f1325
engine: server: static-ize functions in sv_game. Set GAME_EXPORT attribute to server GameAPI functions
1 year ago
Alibek Omarov
214fc7e827
engine: common: move host cvars to static allocation
2 years ago
Alibek Omarov
b16fa8eddc
public: remove Q_strcat and Q_strcpy, and patch the code that uses it
2 years ago
Alibek Omarov
b12b2aaf79
engine: common: cmd: add Cbuf_AddTextf wrapper
2 years ago
Alibek Omarov
91be4f6521
engine: common: cmd: fix inverted check in apropos
2 years ago
Alibek Omarov
1274fa13c8
engine: common: cmd: slightly simplify apropos taking all arguments and checking for filtering symbols
2 years ago
Alibek Omarov
af7d6f6fa8
engine: common: no point to allow if and else commands in unprivileged mode since scripting is available only for privileged
2 years ago
Alibek Omarov
cb0f513bf0
engine: common: allow cvar substituion in privileged mode only to prevent leaking sensitive data
2 years ago
Alibek Omarov
ca2a6635b6
engine: common: fix cmdlist and cvarlist to match the beginning of command or cvar
2 years ago
Alibek Omarov
5350d88f57
public: crtlib: add quotation mark support for ParseFile, required for filesystem_stdio
2 years ago
Alibek Omarov
691a305f8e
engine: common: reorder cmd_t fields to be compatible with GoldSrc
3 years ago
Alibek Omarov
1f26710bd0
engine: fix add command error messages
3 years ago
Alibek Omarov
fa37d153c8
engine: common: restrict alias/unalias and stuffcmds from executing by server
3 years ago
Alibek Omarov
1ffe050205
engine: print only command name in Unknown command message, rather than a full line
3 years ago
Alibek Omarov
1cac321c00
engine: enable filtered command buffer for dedicated to pass the tests
3 years ago
Alibek Omarov
1944f48516
engine: common: allow unlimited commands for unprivileged mode at this time to not break mods like GGM
3 years ago
Alibek Omarov
992bcd89ef
engine: add cmd and cvar tests for privileged mode
3 years ago
Alibek Omarov
508eb7ab5f
engine: restore command escaping
3 years ago
Alibek Omarov
8599119c8d
engine: add filterable flag support for cvars and cmds
3 years ago
Alibek Omarov
36702aafe7
engine: rename FCVAR_LOCALONLY and CMD_LOCALONLY into FCVAR_PRIVILEGED and CMD_PRIVILEGED
3 years ago
Alibek Omarov
b24c1a51d3
engine: try to mitigate outdated client.dll vulnerabilities
3 years ago
Alibek Omarov
f9d1d14848
engine: disable filtered command buffer for dedicated
3 years ago
Alibek Omarov
1a1d81de62
engine: add stuffcmd filtering, not wired to ClientCmd yet
3 years ago
Alibek Omarov
9e5d5e0ea3
public: moved COM_ParseFileSafe to libpublic, added optional argument for length and overflow checking
3 years ago
Alibek Omarov
901e52615b
engine: fix Com_ParseFile call
3 years ago
Alibek Omarov
0efc5e82ec
engine: fix some const qualifier lose and pointer-to-int casts
3 years ago
Alibek Omarov
155eb1ba58
engine: fix various warnings
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
abd9778ef3
engine: common: simplified strings operations.
4 years ago
mittorn
3a416636f1
engine: mark GAME_EXPORT's
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
Alibek Omarov
2f8fec6b70
Remove trailing spaces, convert mistakenly put spaces to tabs. The most useful commit ever.
5 years ago
Alibek Omarov
da4062ede9
engine: cmd: add apropos command from old engine
5 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
199ebfed48
ref: implement engine ref API
6 years ago
Alibek Omarov
aae3510763
Apply 4281 update
6 years ago
Alibek Omarov
9e618ce3e1
cmd: base_cmd: fix inconsistency between linked list and hash map
6 years ago
mittorn
5c738b3402
Apply 4253 update
6 years ago
Alibek Omarov
814b7eda07
Apply 4140 update
7 years ago
Alibek Omarov
5d48708615
Forgot to add cvars into basecmd. Add basecmd_test to check is basecmd valid
7 years ago
Alibek Omarov
0561ac2076
Add basecmd from old engine. Add basecmd_stats command
7 years ago
Alibek Omarov
5a449a56ea
Port restricted cmds and cvars from old engine. TODO: implement better stufftext filter
7 years ago
Alibek Omarov
9bab7d222a
Apply 4097 update
7 years ago
Alibek Omarov
efe8ddf151
Fix missing const-qualifiers in engine code. Fix qboolean/int mixing in interface implementations(int is preferred). Replace long by int in COM_RandomLong.
7 years ago
Alibek Omarov
fd649905ea
Fix some format warnings
7 years ago
mittorn
c1076f43f7
Update client engine interface
7 years ago
Alibek Omarov
5d13112e25
Dedicated build
7 years ago
Alibek Omarov
8d6e3b7f79
Pure engine source code(LF line endings, UTF8 encoded)
7 years ago