0ad/source/scriptinterface
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
..
tests Fix conversion of UTF8 strings between the scripts and the engine. 2020-06-30 10:46:06 +00:00
third_party Fix a possible source of segmentation fault in our custom version of ObjectIdCache. 2016-09-24 13:48:11 +00:00
NativeWrapperDecls.h Replace deprecated jsval with JS::Value. 2017-08-28 10:27:36 +00:00
NativeWrapperDefns.h Officially drop support for Visual Studio 2013, which stopped working after 3a839517ce, fixes #5379. 2020-01-12 20:04:22 +00:00
ScriptConversions.cpp Fix conversion of UTF8 strings between the scripts and the engine. 2020-06-30 10:46:06 +00:00
ScriptConversions.h Stop failing if mod is broken and display invalid mods in downloader [Mod Io] 2020-07-12 09:25:03 +00:00
ScriptEngine.h Upgrade SpiderMonkey to version 45.0.2, refs #4893. 2019-08-07 22:37:43 +00:00
ScriptExtraHeaders.h SpiderMonkey 38 upgrade: 09/35 2016-09-02 16:23:44 +00:00
ScriptInterface.cpp Rework ScriptInterface EnumeratePropertyNames to support non-enumerable properties. 2020-06-14 09:49:32 +00:00
ScriptInterface.h Stop failing if mod is broken and display invalid mods in downloader [Mod Io] 2020-07-12 09:25:03 +00:00
ScriptRuntime.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
ScriptRuntime.h Fix build without PCH for some targets. 2018-12-28 14:58:35 +00:00
ScriptStats.cpp Use in-place construction. 2015-07-29 23:44:17 +00:00
ScriptStats.h Add JS memory usage to profiler. 2010-08-02 19:23:58 +00:00
ScriptTypes.h Upgrade SpiderMonkey to version 45.0.2, refs #4893. 2019-08-07 22:37:43 +00:00
ScriptVal.h Officially drop support for Visual Studio 2013, which stopped working after 3a839517ce, fixes #5379. 2020-01-12 20:04:22 +00:00