Alibek Omarov
|
19dfec5f52
|
engine: use BaseCmd_FindAll when looking for cvars and cmds simultaneously
|
2026-02-20 21:56:59 +05:00 |
|
Alibek Omarov
|
3a5d57603f
|
engine: print unknown command message in dedicated mode and when not on server
|
2026-01-13 08:27:03 +05:00 |
|
Alibek Omarov
|
c3531b6499
|
engine: expect that base_cmd is consistent, as for many years no cases of broken basecmd were found
|
2025-05-25 16:48:31 +05:00 |
|
Alibek Omarov
|
9c6f12f31c
|
engine: make command argc/argv functions inline
|
2025-05-25 16:47:45 +05:00 |
|
Alibek Omarov
|
913d0eb693
|
engine: add command to make other commands or variables privileged
|
2025-05-25 16:33:11 +05:00 |
|
Alibek Omarov
|
7bff848592
|
engine: base_cmd: simplify FindAll
|
2025-05-25 16:33:11 +05:00 |
|
Alibek Omarov
|
20d4e3e719
|
engine: fix flexible array member usage in case of null terminated strings
(woops)
|
2025-01-22 05:41:52 +03:00 |
|
Alibek Omarov
|
273990d292
|
engine: cmd: store command description in flexible array member
|
2025-01-21 15:06:08 +03:00 |
|
Alibek Omarov
|
232d1f8583
|
engine: make separate mempools for cmds, cvars and basecmd
|
2025-01-21 11:26:35 +03:00 |
|
Alibek Omarov
|
2a7f13151a
|
engine: cmd: when command is already defined and has the same function pointer, show it as warning
|
2025-01-06 13:51:25 +03:00 |
|
Alibek Omarov
|
14e79f04ac
|
engine: prevent extra malloc in exec by checking if cfg already contains newline at EOL and appending it to cbuf if required
|
2024-12-28 16:03:49 +03:00 |
|
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 |
|