Skip to content

Conversation

@Bromeon
Copy link
Member

@Bromeon Bromeon commented Nov 8, 2025

Checks for availability of both get_godot_version and get_godot_version2 function pointers to obtain runtime version. This works for versions < 4.5 and >= 4.5, and both normal and no-deprecated-symbol builds of Godot.

Also fixes a bug during init logic where GDExtensionGodotVersion2 was used in some cases, although this one would always be GDExtensionGodotVersion for Godot 4.0.

Fixes #1398.

Checks for availability of both `get_godot_version` and `get_godot_version2` function
pointers to obtain runtime version. This works for versions < 4.5 and >= 4.5, and both
normal and no-deprecated-symbol builds of Godot.

Also fixes a bug during init logic where `GDExtensionGodotVersion2` was used in some cases,
although this one would *always* be `GDExtensionGodotVersion` for Godot 4.0.
@Bromeon Bromeon added bug c: ffi Low-level components and interaction with GDExtension API labels Nov 8, 2025
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1403

@Bromeon Bromeon added this pull request to the merge queue Nov 8, 2025
Merged via the queue into master with commit b2a2a58 Nov 8, 2025
20 checks passed
@Bromeon Bromeon deleted the bugfix/version-check branch November 8, 2025 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug c: ffi Low-level components and interaction with GDExtension API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Version check for <4.5 is now broken, due to relying on get_godot_version2

2 participants