Robert Müller
da5ec5a0d2
Include <iterator>
instead of <array>
for std::size
...
As `std::size` nominally resides in `<iterator>`.
2022-06-17 17:39:24 +02:00
Robert Müller
31533d5e2a
Organize engine-shared includes
2022-05-29 20:02:22 +02:00
Robert Müller
fade4d2984
Extract CConsole::TraverseChain, fix toggle with multiple chains
2022-05-20 19:41:31 +02:00
heinrich5991
177cdfdde9
Fix memleak of multiply chained console commands
2022-05-19 21:06:05 +02:00
ChillerDragon
2693eff72e
Show "No such command" and "Invalid arguments"
2022-05-15 13:37:30 +02:00
ChillerDragon
0ff129a19e
Fix /cmdlist output not being shown in chat
2022-05-15 13:24:57 +02:00
heinrich5991
fa4bcd5ec0
Unify logging infrastructure between IConsole
and dbg_msg
...
This makes the "black console window" less important on Windows (or
anywhere else, for that matter), lets you see logs from other threads in
the f1 console, and removes the distinction between `IConsole::Print`
and `dbg_msg`.
2022-04-29 15:21:26 +02:00
Dennis Felsing
843acf6a5a
Use std::size instead of sizeof(a) / sizeof(a[0])
2022-03-30 18:55:04 +02:00
Dennis Felsing
68e4eb21d5
Add modernize-use-bool-literals
2022-02-15 00:12:52 +01:00
heinrich5991
1820a0e168
Add some checksum functions to the client
...
Let's see if it works out, if not, we can revert it.
2022-01-31 21:31:26 +01:00
heinrich5991
cdbf8ff2d2
Skip the UTF-8 BOM on all read text files
...
Fixes #4462 .
2021-12-17 22:07:01 +01:00
Alexander Akulich
cad00f7ce1
Add a config var to toggle colors enablement for the console output
2021-12-08 20:35:03 +03:00
Jupeyy
f909f612f0
Use default color, if print color is white
2021-10-24 01:48:38 +02:00
BloodWod
b9d660dd95
Add colors for dbg_msg console
2021-08-28 04:42:42 +05:00
Jupeyy
853e00ed15
More colors from chat in console
2021-03-08 01:20:28 +01:00
Alexander Akulich
c2f276cee1
Port CConfig API from the upstream (0.7.5)
...
The old (g_Config) API is kept to not break the stuff.
See commits:
de5859b371
78076761eb
2021-01-10 17:10:19 +03:00
Alexander Akulich
09c05ab99f
Port CConsole::Init() from the upstream code
...
Partial port of upstream commit c0bf37fb48
2021-01-10 16:51:18 +03:00
heinrich5991
7663641ed2
Fix some variable name's style
2020-11-08 17:15:48 +01:00
Learath2
ba7b95f7ad
Revert #3066
...
This reverts commits:
a2b3f45f8b
26a07c804f
2020-10-17 17:32:52 +02:00
heinrich5991
a2b3f45f8b
Reintroduce CMDFLAG_TEST
...
Add some more helpful messages for executing test/game commands.
2020-10-11 16:27:28 +02:00
Andrii
26a07c804f
Disallow game-related commands unless testing is enabled
2020-10-11 16:02:10 +02:00
def
3be8a592e5
Run clang-format
...
Purely automatic change. In case of conflict with this change, apply the
other change and rerun the formatting to restore it:
$ python scripts/fix_style.py
2020-09-26 21:50:15 +02:00
Learath
af2e02ccd2
Fix color toggles
2020-06-27 15:12:53 +03:00
Learath
75e96aa5d3
Get rid of more magic constants, adapt to 0.7
2020-06-19 21:48:48 +03:00
Learath
d200ef0bb0
Remove ugly hack
2020-06-19 21:42:19 +03:00
Aerll
ff685ac1e0
fix ub
2019-12-08 20:08:00 +01:00
def
cb738ffed0
Fix show_ips to show regular formatting ( fixes #1873 )
2019-08-01 20:24:30 +02:00
Learath2
8469949257
Remove debug message
2019-07-02 14:56:02 +02:00
Learath2
1993989067
Fix toggle not working with colors
2019-07-02 14:54:06 +02:00
Learath
db5c17ce71
Avoid implementation-defined behaviour
2019-05-15 18:11:22 +02:00
Learath
0d39eb128d
Use unsigned integers for colors
2019-05-15 18:05:19 +02:00
Learath2
e608e2f34f
Add Hex display
2019-05-11 02:32:37 +02:00
Learath2
0dd67c92f1
Abbreviate alpha
2019-05-11 02:16:48 +02:00
Learath2
82e6d180e4
Use % and °
2019-05-11 02:12:37 +02:00
Learath2
b059ac256e
Show Alpha only if it's relevant
2019-05-11 02:12:36 +02:00
Learath
b86c457c91
Remember whether a color is lit or not
2019-05-01 23:35:29 +03:00
Learath
f479f69735
Add a flag for colors with alpha
2019-05-01 13:58:51 +03:00
Learath
324c389e87
Accept negatives aswell, don't clamp
2019-05-01 13:41:58 +03:00
Learath
588acdda0d
Consolidate color configs, extend debugging
2019-04-27 02:02:31 +03:00
Learath
ffa07d88cb
Please -WError
2019-04-26 19:11:34 +03:00
Learath
69d78c21b4
Lighten tee colors
2019-04-26 16:38:16 +03:00
Learath
93265dbb9c
Please MSVC
2019-04-25 21:09:32 +03:00
Learath
e637064a68
Don't store HSL separately
2019-04-25 19:49:27 +03:00
Learath
95a3a69e08
Start phasing out vectors for colors
2019-04-25 18:21:35 +03:00
Learath
cc319e0152
Fix warnings and style
2019-04-25 15:04:36 +03:00
Learath
0f781df1dd
Try handling colors in console
2019-04-25 14:48:53 +03:00
def
b91530eedc
Console: Can't deallocate temp entries, so don't even try
2019-04-10 23:32:45 +02:00
heinrich5991
5c4e819e44
Use str_startswith
, str_endswith
instead of ad-hoc implementations
2018-07-26 14:18:23 +02:00
heinrich5991
c739aef60e
Some style fixes
2018-06-19 14:28:53 +02:00
heinrich5991
f8277267a0
Remove mem_alloc
and mem_free
, use standard C functions instead
...
Replace `mem_free` by `free`, and `mem_alloc` by `malloc` or `calloc`
(the latter one being used to allocate a zeroed array of elements,
sometimes, this makes a call to `mem_zero` superfluous).
This results in having to remove `mem_stats` which previously recorded
the number of allocations and their size that the Teeworlds code did
directly.
Remove OOM handling in `src/game/client/components/binds.cpp`.
Remove needless copying in the CSV code in
`src/game/client/components/statboard.cpp`.
2018-04-09 11:56:39 +02:00