1
0
forked from 0ad/0ad
0ad/source/ps
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
..
GameSetup Allow command line options to start with - or -- 2017-09-30 16:12:18 +00:00
scripting Expose the same ReadJSONFile function to simulation, GUI and rmgen. 2017-12-03 23:02:27 +00:00
tests Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
XML Test integer validation. 2017-10-09 07:00:31 +00:00
ArchiveBuilder.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
ArchiveBuilder.h Handle mods specified on the command line when using the archive builder. 2014-06-15 16:43:08 +00:00
CacheLoader.cpp add file notification to Mac ticket 514, also change name of class FileInfo to CFileInfo to ease Mac development 2013-09-10 14:17:04 +00:00
CacheLoader.h Improves CColladaManager caching behavior: skeletons.xml changes now invalidate cached .pmd/psa files, CCacheLoader is used for consistency, adds support for archived files. Fixes #1167. 2012-02-19 03:30:59 +00:00
CConsole.cpp Use direct gui.scale instead of reciprocal gui.scale 2017-06-14 17:13:44 +00:00
CConsole.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
CLogger.cpp Command line option for pid+timestamp in OOS dump, mainlog and interestinglog 2017-09-09 13:16:05 +00:00
CLogger.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
Compress.cpp More build fixes for FreeBSD. 2012-01-31 00:06:56 +00:00
Compress.h More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
ConfigDB.cpp Save the config file even it does not exist, patch by Vladislav Belov, fixes #4146 2016-11-18 18:06:01 +00:00
ConfigDB.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
CStr.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
CStr.h Remove duplicated layers of unescaping which required multiple escapes in some places. 2014-12-13 01:08:29 +00:00
CStrIntern.cpp Revert emplace for associative containers. Fixes #3366. 2015-08-19 03:32:47 +00:00
CStrIntern.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
CStrInternStatic.h Allow multiple special sprites, to facilitate cases where we want to add an overlay to a sprite. 2015-12-13 16:03:17 +00:00
DllLoader.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
DllLoader.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
Errors.cpp # Rewrite of the game's simulation system 2010-01-09 19:20:14 +00:00
Errors.h Catch exceptions by reference (by convention), based on patch from Markus, refs #1852 2013-05-22 22:27:53 +00:00
FileIo.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
FileIo.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
Filesystem.cpp Use in-place construction. 2015-07-29 23:44:17 +00:00
Filesystem.h Move GUI schemas to the mod mod. Fix some validation related errors in the mod mod. 2015-06-15 16:00:26 +00:00
Game.cpp More ScriptInterface const. 2017-11-25 06:49:58 +00:00
Game.h Fix the replay menu for people with non-latin characters in their username. 2017-06-25 14:54:00 +00:00
Globals.cpp Fix out of bounds access in Hotkey.cpp. Patch by echotangoecho. 2017-05-19 18:01:22 +00:00
Globals.h Fix out of bounds access in Hotkey.cpp. Patch by echotangoecho. 2017-05-19 18:01:22 +00:00
GUID.cpp Actually remove trailing whitespace for non-header files as well. 2016-11-23 13:02:58 +00:00
GUID.h Multiplayer lobby based on the XmPP protocol. Special thanks to Philip, alpha123, scythetwirler, and anyone else who has helped build, debug or test the lobby. 2013-11-07 20:07:24 +00:00
Hotkey.cpp Try to recognise unknown hotkey mappings using SDL2. 2017-05-21 08:05:52 +00:00
Hotkey.h Unload hotkeys on shutdown. 2014-09-15 01:27:06 +00:00
Joystick.cpp Remove disabled by default SDL1 support. 2015-12-14 10:52:21 +00:00
Joystick.h Renames our sdl.h to libsdl.h, to avoid case sensitivity errors when it includes SDL.h. 2012-01-12 23:32:27 +00:00
KeyName.cpp Actually remove trailing whitespace for non-header files as well. 2016-11-23 13:02:58 +00:00
KeyName.h Fix out of bounds access in Hotkey.cpp. Patch by echotangoecho. 2017-05-19 18:01:22 +00:00
Loader.cpp Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
Loader.h cleanup (requires update-workspaces) 2011-05-03 12:38:42 +00:00
LoaderThunks.h warning fixes: mostly size_t vs. specialized API type and other type conversion. 2010-09-05 09:38:30 +00:00
Mod.cpp Add engine support to load mods from config and restart into mods. 2014-08-25 16:02:40 +00:00
Mod.h Add engine support to load mods from config and restart into mods. 2014-08-25 16:02:40 +00:00
Preprocessor.cpp Add FALLTHROUGH, which in the best case is just [[fallthrough]]. 2017-09-01 20:04:53 +00:00
Preprocessor.h Fix CPreprocessor uninitialised data causing error messages on "#endif" followed by EOF with no newline. Warn about unrecognised "#elif". 2012-04-02 16:12:46 +00:00
PreprocessorWrapper.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
PreprocessorWrapper.h Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
Profile.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
Profile.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
Profiler2.cpp Make all Wildfire Games copyright headers consistent by always ending with a period and using (C) instead of (c). 2017-07-10 14:26:24 +00:00
Profiler2.h Make all Wildfire Games copyright headers consistent by always ending with a period and using (C) instead of (c). 2017-07-10 14:26:24 +00:00
Profiler2GPU.cpp Make all Wildfire Games copyright headers consistent by always ending with a period and using (C) instead of (c). 2017-07-10 14:26:24 +00:00
Profiler2GPU.h Make all Wildfire Games copyright headers consistent by always ending with a period and using (C) instead of (c). 2017-07-10 14:26:24 +00:00
ProfileViewer.cpp Pass ScriptInterface as a const ref where possible. 2017-08-24 00:32:42 +00:00
ProfileViewer.h Pass ScriptInterface as a const ref where possible. 2017-08-24 00:32:42 +00:00
Pyrogenesis.cpp Bump version number to Alpha 23. 2017-07-29 16:36:55 +00:00
Pyrogenesis.h Move engine version to common file. Patch by elexis. Fixes #3359. 2015-08-01 23:03:13 +00:00
Replay.cpp Pass ScriptInterface as a const ref where possible. 2017-08-24 00:32:42 +00:00
Replay.h Pass ScriptInterface as a const ref where possible. 2017-08-24 00:32:42 +00:00
SavedGame.cpp Deepfreeze Aura, Technology and Resource Templates, Simulation states, GameAttributes and few other JS objects. 2017-09-03 16:37:09 +00:00
SavedGame.h Pass ScriptInterface as a const ref where possible. 2017-08-24 00:32:42 +00:00
Shapes.cpp Actually remove trailing whitespace for non-header files as well. 2016-11-23 13:02:58 +00:00
Shapes.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
Singleton.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
TemplateLoader.cpp Remove unneeded include. 2017-09-30 15:29:13 +00:00
TemplateLoader.h More ScriptInterface const. 2017-11-25 06:49:58 +00:00
ThreadUtil.cpp Add a list of statically-constructed CStrIntern strings 2013-09-29 13:19:52 +00:00
ThreadUtil.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
TouchInput.cpp Remove disabled by default SDL1 support. 2015-12-14 10:52:21 +00:00
TouchInput.h Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
UniDoubler.h Use default Unicode encoding in source code on Windows. 2017-11-29 20:14:22 +00:00
UserReport.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
UserReport.h # Add opt-in automatic feedback system. 2011-02-16 20:40:15 +00:00
utf16string.h Fix -Wconversion warnings in simulation code. 2011-08-16 11:18:32 +00:00
Util.cpp Stop using WMI for detecting the sound card, and use OpenAL instead. Delete WMI code altogether now it is unused. 2017-07-06 17:29:49 +00:00
Util.h Split TurnManager classes into individual files per class. Patch by echotangoecho, fixes #4095. 2017-01-24 02:04:50 +00:00
VideoMode.cpp Add an icon to pyrogenesis' application window 2017-08-28 21:56:54 +00:00
VideoMode.h Add an icon to pyrogenesis' application window 2017-08-28 21:56:54 +00:00
VisualReplay.cpp Pass ScriptInterface as a const ref where possible. 2017-08-24 00:32:42 +00:00
VisualReplay.h Pass ScriptInterface as a const ref where possible. 2017-08-24 00:32:42 +00:00
World.cpp Always delete CMapReader. Patch by Sandarac. Fixes #4154. 2017-08-25 00:37:48 +00:00
World.h Always delete CMapReader. Patch by Sandarac. Fixes #4154. 2017-08-25 00:37:48 +00:00