1
1
forked from 0ad/0ad
0ad/source
Angen 6f1d17c954 Stop failing if mod is broken and display invalid mods in downloader [Mod Io]
If one mod is not signed or broken in any other way, mod.io downloader
fails and does not display any mod.
The problem with unsigned mod is that its metadata are empty.

That means one cannot break mod io downloader with mods having invalid
data.

mark mod as invalid and display in list as disabled and display reason
instead description to not spam ugly error messages on screen as this is
not error by the game but of the moder
report failed signatures back to list of mods
fail if property is not set using strict mode when getting from js
check in js for undefined values

Allow to filter only valid mods.

Differential Revision: https://code.wildfiregames.com/D2114
Reviewed by: @Itms
Fixes: #5459

This was SVN commit r23821.
2020-07-12 09:25:03 +00:00
..
collada Fix compiler warnings on VS 2015, refs #3439, refs #5069. 2018-03-10 09:58:53 +00:00
graphics Fixes terrain index type (causing a warning) introduced in 1e1ce27eba. 2020-07-07 16:51:20 +00:00
gui Fix --without-pch build following ffd2219200 2020-06-14 20:51:21 +00:00
i18n Remove some unused Profiler.h and CLogger.h includes. 2019-09-07 13:35:45 +00:00
lib Fixes missing deletion of files in 409c436ae2. 2020-06-08 22:36:19 +00:00
lobby Rework ScriptInterface EnumeratePropertyNames to support non-enumerable properties. 2020-06-14 09:49:32 +00:00
maths CVector2D: Fix members may not be initialized warnings 2020-06-21 18:21:31 +00:00
mocks More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
network Add thread names on Linux (implements debug_SetThreadName), also add the thread name of the UPnP thread. 2020-04-06 20:20:27 +00:00
pch Precompiled logic update [Windows build] 2019-12-31 13:58:48 +00:00
ps Stop failing if mod is broken and display invalid mods in downloader [Mod Io] 2020-07-12 09:25:03 +00:00
renderer Remove duplicated call in tile rendering for TerrainOverlay. 2020-06-12 20:52:18 +00:00
scriptinterface Stop failing if mod is broken and display invalid mods in downloader [Mod Io] 2020-07-12 09:25:03 +00:00
simulation2 Fix building on GCC 10, fixes #5709, #5756. 2020-06-30 10:24:00 +00:00
soundmanager Removes duplication of Clamp function. 2019-09-26 21:14:21 +00:00
third_party Fix gcc warning reported by Imarok after 204e17206b 2020-05-23 12:21:49 +00:00
tools Internationalise Damage Types and Status Effects using (optional) JSON files. 2020-05-20 17:26:37 +00:00
main.cpp Implement keyDown event 2020-05-26 21:47:03 +00:00
test_setup.cpp Fix string format of the JS test assertion failure following 7c2e9027c2 (cxxtest expects a char* instead of a std::wstring, so newlines were printed as \n characters). 2017-10-13 21:56:45 +00:00