0ad/source
elexis 0cfe9ab153 Expose the same ReadJSONFile function to simulation, GUI and rmgen.
This way globalscripts/ can use the same code in all contexts, all paths
are absolute and only one function name is needed.
Remove ReadCivJSONFile which is redundant with this function as well.
Restrict read access of rmgen/ to rmgen/ and simulation/, refs
4275a8a33c, 89055ef858.

Refs #4868
Differential Revision: https://code.wildfiregames.com/D1085
Reviewed By: wraitii
Partial agreement with leper

This was SVN commit r20576.
2017-12-03 23:02:27 +00:00
..
collada Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
graphics Expose the same ReadJSONFile function to simulation, GUI and rmgen. 2017-12-03 23:02:27 +00:00
gui Expose the same ReadJSONFile function to simulation, GUI and rmgen. 2017-12-03 23:02:27 +00:00
i18n Pass ScriptInterface as a const ref where possible. 2017-08-24 00:32:42 +00:00
lib Support Visual Studio 2015 (MSVC 14.0), fixes #3439. 2017-11-29 21:16:10 +00:00
lobby Fix few typos found with the Debian lintian tool. 2017-10-28 22:34:57 +00:00
maths Adds a perspective matrix, refracts a matrix projection setup to prepare for an isometric view. 2017-10-29 23:41:59 +00:00
mocks More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
network Use default Unicode encoding in source code on Windows. 2017-11-29 20:14:22 +00:00
pch Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
ps Expose the same ReadJSONFile function to simulation, GUI and rmgen. 2017-12-03 23:02:27 +00:00
renderer Allow models using alpha-blending (transparent models) to be silhouette casters. 2017-12-03 10:14:16 +00:00
scriptinterface Delete unused SpiderMonkey GarbageCollection ScriptFunctions ForceGC in the AI and GUI context (e9e05f4efc) and MaybeGC in the random mapgen context (942a45372c). 2017-12-03 12:48:21 +00:00
simulation2 Expose the same ReadJSONFile function to simulation, GUI and rmgen. 2017-12-03 23:02:27 +00:00
soundmanager Pass ScriptInterface as a const ref where possible. 2017-08-24 00:32:42 +00:00
third_party Support Visual Studio 2015 (MSVC 14.0), fixes #3439. 2017-11-29 21:16:10 +00:00
tools More ScriptInterface const. 2017-11-25 06:49:58 +00:00
main.cpp Allow command line options to start with - or -- 2017-09-30 16:12:18 +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