Skip to content

Update for GDExtension interface changes in Godot 4.5#1792

Merged
dsnopek merged 1 commit into
godotengine:masterfrom
dsnopek:gdextension-interface-45
Jun 24, 2025
Merged

Update for GDExtension interface changes in Godot 4.5#1792
dsnopek merged 1 commit into
godotengine:masterfrom
dsnopek:gdextension-interface-45

Conversation

@dsnopek

@dsnopek dsnopek commented Jun 16, 2025

Copy link
Copy Markdown
Collaborator

This updates the gdextension_interface.h to match what's currently in Godot master (and will become part of Godot 4.5), and also attempts to make use of the newer functions, such that we aren't using any deprecated functions.

I also added support for the startup, frame and shutdown callbacks from PR godotengine/godot#106030

This allowed me to test that those callbacks work as expected, although, I didn't add any automated tests using them in this PR, since I'm not sure how we could effectively do that.

The comment changes in gdextension_interface.h from PR godotengine/godot#107594 are included here as well, so this shouldn't be merged until after that PR is.

UPDATE: That PR was merged! This PR has been updated with the latest version from it.

Fixes #1791

@dsnopek dsnopek added this to the 4.x milestone Jun 16, 2025
@dsnopek
dsnopek requested a review from a team as a code owner June 16, 2025 16:27
@dsnopek dsnopek added the enhancement This is an enhancement on the current functionality label Jun 16, 2025
@dsnopek
dsnopek force-pushed the gdextension-interface-45 branch from fdcbf5d to bb349af Compare June 16, 2025 16:38
@dsnopek
dsnopek force-pushed the gdextension-interface-45 branch from bb349af to f402a21 Compare June 20, 2025 17:39

@Ivorforce Ivorforce left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty straight forward :)

Comment thread include/godot_cpp/godot.hpp
@dsnopek
dsnopek force-pushed the gdextension-interface-45 branch 2 times, most recently from cc0a997 to 574efc2 Compare June 22, 2025 12:32
@dsnopek
dsnopek force-pushed the gdextension-interface-45 branch from 574efc2 to 7f5f029 Compare June 23, 2025 21:40
@dsnopek

dsnopek commented Jun 23, 2025

Copy link
Copy Markdown
Collaborator Author

I just updated for the changes merged in godotengine/godot#107788, which will hopefully be the last changes to gdextension_interface.h for Godot 4.5 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement This is an enhancement on the current functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

require support no-deprecated

2 participants