ddnet/src/engine
Robert Müller 7acf2c1573 Add functions for reading/writing strings from/to datafile
Simplify the usage of datafile reader and writer by adding utility functions to read and write zero-terminated UTF-8 strings.

Improve validation of string data read from datafiles. It is ensure that string data is null-terminated, has no internal NUL-characters and is valid UTF-8.

Fix loading of external sounds in the editor. The wrong path variable was being used, so the sound files would not be loaded from correct folder.

Add tests for new datafile reader/writer functions.
2023-10-03 16:07:15 +02:00
..
client Store number of filtered players when filtering 2023-10-01 20:53:29 +02:00
docs Merge #5918 2022-10-09 13:53:05 +00:00
external Update zlib to version 1.2.13 2022-10-14 14:53:24 +02:00
gfx Remove redundant argument of Dilate function 2023-10-03 13:52:37 +02:00
server Add CSnapshot::EmptySnapshot, mark pointer arguments as const 2023-09-26 20:13:27 +02:00
shared Add functions for reading/writing strings from/to datafile 2023-10-03 16:07:15 +02:00
antibot.h Forgot to add target here 2021-07-22 00:22:12 +02:00
Cargo.toml Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
client.h Hide client is not online log message except when using record 2023-08-29 22:05:16 +02:00
config.h Implement "reset" command 2021-12-27 01:13:11 +01:00
console.h Merge pull request #5434 from heinrich5991/pr_ddnet_loglevels 2023-08-01 09:20:06 +00:00
console.rs Fix typos 2023-09-05 22:32:09 +03:00
demo.h Ensure strings in demo header are zero-terminated and valid UTF-8 2023-09-23 22:14:34 +02:00
discord.h Only announce servers using Steam/Discord integration which are registered 2022-10-09 16:16:54 +02:00
editor.h dont switch to editor if loading fails 2023-08-26 22:13:13 +02:00
engine.h Clean up CServerLogger (fixes #6598) 2023-05-17 01:04:06 +02:00
favorites.h Allow multiple addresses per server in the serverbrowser 2022-07-10 16:52:07 +02:00
friends.h Bump friends limit from 1024 to 4096 (fixes #6096) 2022-12-06 10:31:43 +01:00
ghost.h Organize engine-shared includes 2022-05-29 20:02:22 +02:00
graphics.h Add CImageInfo::PixelSize function, use enum EImageFormat 2023-09-03 20:40:28 +02:00
input.h Use dropdown menu to select game controller 2023-06-09 14:04:35 +02:00
kernel.h Fix misspellings 2022-10-25 13:51:56 -03:00
keys.h Regenerate key lists with latest SDL version 2023-05-30 23:39:47 +02:00
lib.rs Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
map.h Add functions for reading/writing strings from/to datafile 2023-10-03 16:07:15 +02:00
message.h Add a simpler IServer::SnapNewItem() API based on some more generated data 2023-02-10 23:12:24 +03:00
rust.h Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
server.h Add possibility to persist game data past map changes 2023-08-27 16:11:45 +02:00
serverbrowser.h Store number of filtered players when filtering 2023-10-01 20:53:29 +02:00
sound.h Refactor and reorder RateConvert, DecodeOpus, DecodeWV 2023-09-21 23:52:44 +02:00
sqlite.h Remove useless typedef in c++ 2022-06-25 21:05:54 +02:00
steam.h Only announce servers using Steam/Discord integration which are registered 2022-10-09 16:16:54 +02:00
storage.h Add IStorage::NumPaths to get number of storage locations 2023-07-03 20:06:39 +02:00
textrender.h Overhaul server browser filter, details and friends tabs 2023-09-16 13:45:52 +02:00
updater.h Overhauled job system 2017-11-23 15:47:38 +01:00
uuid.h Make sure headers compile standalone 2020-09-26 21:50:27 +02:00
warning.h Add block list for drivers 2020-11-05 21:07:14 +01:00