I’ve pulled some changes and compiled it as a custom Godot build to test new expose method EditorScriptHighlighter::_create()
for GDExtension.
Now I just need to generate its godot-cpp bindings so I can test it with my own GDExtension repo.
Since it’s a small code change, I’ve tried manually adding the binds into godot-cpp but realize I need its m_hash.
Thanks in advance
You just need to regenerate the binding json using the engine you’ve customised.
--dump-gdextension-interface E Generate a GDExtension header file "gdextension_interface.h" in the current folder. This file is the base file required to implement a GDExtension.
--dump-extension-api E Generate a JSON dump of the Godot API for GDExtension bindings named "extension_api.json" in the current folder.
godot --dump-extension-api
Then target godot-cpp to those bindings when building using something like
gdextension_dir: Path to a custom directory containing GDExtension interface header and API JSON file ( /path/to/gdextension_dir )
default: None
actual: None
custom_api_file: Path to a custom GDExtension API JSON file (takes precedence over `gdextension_dir`) ( /path/to/custom_api_file )
default: None
actual: None
`scons custom_api_file=
1 Like