mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 07:33:25 +00:00
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 by871ed04521. 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 fromeb4e66aab3into RegisterReadOnlyScriptFunctions and RegisterWriteScriptFunctions to prevent unintentional write access. This was SVN commit r20507.
This commit is contained in:
@@ -65,6 +65,7 @@ void GuiScriptingInit(ScriptInterface& scriptInterface)
|
||||
JSI_SavedGame::RegisterScriptFunctions(scriptInterface);
|
||||
JSI_Simulation::RegisterScriptFunctions(scriptInterface);
|
||||
JSI_Sound::RegisterScriptFunctions(scriptInterface);
|
||||
JSI_VFS::RegisterScriptFunctions(scriptInterface);
|
||||
JSI_VFS::RegisterReadOnlyScriptFunctions(scriptInterface);
|
||||
JSI_VFS::RegisterWriteScriptFunctions(scriptInterface);
|
||||
JSI_VisualReplay::RegisterScriptFunctions(scriptInterface);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user