Alibek Omarov
0e42e5b9e3
engine: command: introduce new type of commands that can be overriden by a mod DLL for better compatibility
2024-12-26 01:15:32 +03:00
Alibek Omarov
e751092555
engine: common: cmd: consider filtered buffer privileged when we're running local singleplayer game
2024-12-20 05:48:33 +03:00
Alibek Omarov
a834f4996f
engine: move client adding functions to their appropriate subsystems and make them static. Make in-engine functions inlined.
2024-12-20 05:47:46 +03:00
Alibek Omarov
0b59fa9416
engine: swap Cvar_VariableInteger and simple integer checks for performance
2024-10-16 06:57:46 +03:00
Alibek Omarov
f52c825bf5
engine: make some global variables static and const, make even more functions static if possible
2024-10-14 19:19:46 +03:00
Alibek Omarov
5777431577
engine: common: insert spaces between arguments in echo command
2024-08-22 16:45:42 +03:00
Alibek Omarov
d56e53a347
Replace hardcoded functions names by __func__ macro
...
* while we're here, fix some possible bugs
* and fix -Wformat=2
s/__FUNCTION__/__func__/g
awawawa
2024-06-19 06:53:42 +03:00
Alibek Omarov
870e47ed03
engine: ensure character signness when checking for nonprintable characters
2024-06-07 22:22:13 +03:00
Alibek Omarov
4bf72b5383
engine: forbid accessing cvars starting with con_ and scr_ through stufftext
...
Some stupid servers might mess up with console cvars values.
2024-05-25 02:26:42 +03:00
Alibek Omarov
a6c2cfe89b
engine: avoid constants in Q_strncpy third argument, where possible
2024-05-06 14:27:26 +03:00
Alibek Omarov
6a7e027248
engine: common: add joy_ prefix to automatically filterable cvars
2024-03-08 15:25:36 +03:00
Alibek Omarov
05ff0d6020
engine: cmd: remove unused global variable
2024-02-17 22:17:22 +03:00
Alibek Omarov
2b6a550405
engine: clean up common.h header from unused function prototypes, or move them to appropriate header or C file
2024-01-28 10:00:17 +03:00
Alibek Omarov
75d476f9df
engine: fix -Wmissing-prototypes
2024-01-28 09:55:18 +03:00
Alibek Omarov
6b223f1325
engine: server: static-ize functions in sv_game. Set GAME_EXPORT attribute to server GameAPI functions
2023-06-19 07:11:49 +03:00
Alibek Omarov
214fc7e827
engine: common: move host cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
b16fa8eddc
public: remove Q_strcat and Q_strcpy, and patch the code that uses it
2023-04-26 05:20:45 +03:00
Alibek Omarov
b12b2aaf79
engine: common: cmd: add Cbuf_AddTextf wrapper
2023-03-13 05:28:53 +03:00
Alibek Omarov
91be4f6521
engine: common: cmd: fix inverted check in apropos
2023-03-11 07:50:33 +03:00
Alibek Omarov
1274fa13c8
engine: common: cmd: slightly simplify apropos taking all arguments and checking for filtering symbols
2023-03-11 05:38:28 +03:00
Alibek Omarov
af7d6f6fa8
engine: common: no point to allow if and else commands in unprivileged mode since scripting is available only for privileged
2022-12-12 08:18:00 +03:00
Alibek Omarov
cb0f513bf0
engine: common: allow cvar substituion in privileged mode only to prevent leaking sensitive data
2022-12-12 08:14:01 +03:00
Alibek Omarov
ca2a6635b6
engine: common: fix cmdlist and cvarlist to match the beginning of command or cvar
2022-08-25 19:22:06 +03:00
Alibek Omarov
5350d88f57
public: crtlib: add quotation mark support for ParseFile, required for filesystem_stdio
2022-07-26 03:17:11 +03:00
Alibek Omarov
691a305f8e
engine: common: reorder cmd_t fields to be compatible with GoldSrc
2022-04-09 19:38:22 +03:00
Alibek Omarov
1f26710bd0
engine: fix add command error messages
2022-01-14 01:06:52 +03:00
Alibek Omarov
fa37d153c8
engine: common: restrict alias/unalias and stuffcmds from executing by server
2022-01-14 00:26:26 +03:00
Alibek Omarov
1ffe050205
engine: print only command name in Unknown command message, rather than a full line
2022-01-04 09:01:08 +03:00
Alibek Omarov
1cac321c00
engine: enable filtered command buffer for dedicated to pass the tests
2021-12-03 09:41:23 +03:00
Alibek Omarov
1944f48516
engine: common: allow unlimited commands for unprivileged mode at this time to not break mods like GGM
2021-11-23 05:23:38 +03:00
Alibek Omarov
992bcd89ef
engine: add cmd and cvar tests for privileged mode
2021-11-23 05:23:38 +03:00
Alibek Omarov
508eb7ab5f
engine: restore command escaping
2021-11-23 05:23:38 +03:00
Alibek Omarov
8599119c8d
engine: add filterable flag support for cvars and cmds
2021-11-23 05:23:38 +03:00
Alibek Omarov
36702aafe7
engine: rename FCVAR_LOCALONLY and CMD_LOCALONLY into FCVAR_PRIVILEGED and CMD_PRIVILEGED
2021-11-23 05:23:38 +03:00
Alibek Omarov
b24c1a51d3
engine: try to mitigate outdated client.dll vulnerabilities
2021-11-23 05:23:38 +03:00
Alibek Omarov
f9d1d14848
engine: disable filtered command buffer for dedicated
2021-11-23 05:23:38 +03:00
Alibek Omarov
1a1d81de62
engine: add stuffcmd filtering, not wired to ClientCmd yet
2021-11-23 05:23:38 +03:00
Alibek Omarov
9e5d5e0ea3
public: moved COM_ParseFileSafe to libpublic, added optional argument for length and overflow checking
2021-10-08 17:31:32 +03:00
Alibek Omarov
901e52615b
engine: fix Com_ParseFile call
2021-07-20 16:26:17 +03:00
Alibek Omarov
0efc5e82ec
engine: fix some const qualifier lose and pointer-to-int casts
2021-07-20 16:03:06 +03:00
Alibek Omarov
155eb1ba58
engine: fix various warnings
2021-03-07 03:40:01 +03:00
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:]]\+$//' {} \+
```
2021-01-04 20:55:10 +03:00
Andrey Akhmichin
abd9778ef3
engine: common: simplified strings operations.
2020-11-28 23:20:14 +03:00
mittorn
3a416636f1
engine: mark GAME_EXPORT's
2020-01-19 08:15:54 +07:00
Alibek Omarov
9421457b3a
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
2019-11-24 03:52:08 +03:00
Alibek Omarov
2f8fec6b70
Remove trailing spaces, convert mistakenly put spaces to tabs. The most useful commit ever.
2019-07-19 20:23:08 +03:00
Alibek Omarov
da4062ede9
engine: cmd: add apropos command from old engine
2019-07-09 16:36:34 +03:00
Alibek Omarov
b797e0af1a
Merge 4483 update
2019-05-25 02:44:24 +03:00
Alibek Omarov
c215b89923
Apply 4483 update
2019-05-19 15:01:23 +03:00
Alibek Omarov
fe14a360b4
engine: fix fs_offset_t/size_t conversion, const qualifiers
2019-05-02 19:12:23 +03:00