@@ -268,8 +268,8 @@ GDExtension plugin.
268
268
269
269
extern "C" {
270
270
// Initialization.
271
- GDExtensionBool GDE_EXPORT example_library_init(const GDExtensionInterface * p_interface , const GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization) {
272
- godot::GDExtensionBinding::InitObject init_obj(p_interface , p_library, r_initialization);
271
+ GDExtensionBool GDE_EXPORT example_library_init(GDExtensionInterfaceGetProcAddress p_get_proc_address , const GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization) {
272
+ godot::GDExtensionBinding::InitObject init_obj(p_get_proc_address , p_library, r_initialization);
273
273
274
274
init_obj.register_initializer(initialize_example_module);
275
275
init_obj.register_terminator(uninitialize_example_module);
@@ -348,6 +348,7 @@ loaded for each platform and the entry function for the module. It is called ``g
348
348
[configuration]
349
349
350
350
entry_symbol = "example_library_init"
351
+ compatibility_minimum = 4.1
351
352
352
353
[libraries]
353
354
@@ -369,6 +370,8 @@ loaded for each platform and the entry function for the module. It is called ``g
369
370
android.release.arm64 = "res://bin/libgdexample.android.template_release.arm64.so"
370
371
371
372
This file contains a ``configuration `` section that controls the entry function of the module.
373
+ You are also able to set a minimum compatible version with ``compatability_minimum `` of Godot
374
+ which prevents older version of Godot to load your extension.
372
375
373
376
The ``libraries `` section is the important bit: it tells Godot the location of the
374
377
dynamic library in the project's filesystem for each supported platform. It will
0 commit comments