0ad/source
Angen 017fe7e263 Restrict access for Read/WriteFile functions
For security reasons planing to restrict access for ReadFile,
ReadFileLines, WriteJSONFile, ReadJSONFile, ListDirectoryFiles,
FileExists to the following folders/files:

"gui, simulation, maps, campaigns, saves/campaigns,
config/matchsettings.json, config/matchsettings.mp.json"
adding "moddata" if some mods need to access and ship custom files that
don't fit into other locations mentioned above

Differential revision: D4617
Reviewed by: @phosit
Comments by: @Stan @vladislavbelov
Fixes: #5850

This was SVN commit r27202.
2022-11-05 08:33:27 +00:00
..
collada Forbids using more than 64 bones for GPU skinning. 2021-12-13 19:22:27 +00:00
graphics Moves Backend enum from CVideoMode to backends. 2022-10-25 22:45:54 +00:00
gui Reset m_EndsWithSpace to fix the uninitialized read of it introduced in f4128208de. 2022-10-22 15:21:34 +00:00
i18n Remove L10n::DictionaryDeleter added in d6ddc4f3ac. 2022-11-04 20:52:28 +00:00
lib Fix notes in 0a4ba039b4 2022-10-07 12:39:23 +00:00
lobby Adds std namespace to shared_ptr usages in network and engine. 2021-05-22 19:28:40 +00:00
maths Reduces uniforms sizes for the Canvas2D shader. 2022-10-09 10:44:51 +00:00
mocks More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
network Fixes without PCH build in StunClient missing include for std::byte added in 895e4e6aa6. 2022-10-26 00:15:27 +00:00
pch Include CStrInternStatic where necessary only. 2021-05-18 11:09:54 +00:00
ps Restrict access for Read/WriteFile functions 2022-11-05 08:33:27 +00:00
renderer Makes AcquireNextBackbuffer returns true in case of successful backbuffer acquirement. 2022-10-30 00:38:45 +00:00
rlinterface Split off JSON-related function from ScriptInterface, clean up headers. 2021-05-14 10:18:03 +00:00
scriptinterface Remove some duplicated code from ScriptInterface.cpp 2022-03-28 21:58:22 +00:00
simulation2 Fix non-visual autostart, as well as client/host autostart. 2022-05-15 06:34:17 +00:00
soundmanager Moves uniform and texture binding to CDeviceCommandContext. 2022-05-02 20:57:22 +00:00
third_party Optimization for include resolving in PreprocessorWrapper. 2021-01-20 23:05:15 +00:00
tools Makes AcquireNextBackbuffer returns true in case of successful backbuffer acquirement. 2022-10-30 00:38:45 +00:00
main.cpp Adds PS::span and std::string_view to CmdLineArgs. 2022-10-04 19:08:39 +00:00
test_setup.cpp Implement a global task manager using a pool of worker threads 2021-06-03 14:48:38 +00:00