HomeWildfire Games

Unify two rmgen and GUI JSON file loading script functions, refs #4868.

Description

Unify two rmgen and GUI JSON file loading script functions, refs #4868.

Revert the introduction of the exact copies of FileExists ReadJSONFile functions in MapGenerator.cpp introduced by rP20129.
Include JSInterface_VFS.cpp from MapGenerator.cpp to remove that code while gaining the other missing VFS file loading functions in rmgen/.
Split RegisterScriptFunctions of JSInterface_VFS.cpp from rP20133 into RegisterReadOnlyScriptFunctions and RegisterWriteScriptFunctions to prevent unintentional write access.

Details