Skip to content

Fix loading GDExtensions in exported games#96287

Merged
akien-mga merged 1 commit into
godotengine:masterfrom
dsnopek:gdextension-loader-fix
Aug 30, 2024
Merged

Fix loading GDExtensions in exported games#96287
akien-mga merged 1 commit into
godotengine:masterfrom
dsnopek:gdextension-loader-fix

Conversation

@dsnopek
Copy link
Copy Markdown
Contributor

@dsnopek dsnopek commented Aug 29, 2024

Fixes an issue introduced by PR #91166

In current master, GDExtensions will fail to load in exported projects. I noticed it first on Android, because you need to export in order to run on Android, but I've tested that this is the case for a desktop Linux export as well.

Basically, we're getting the absolute path a little earlier than we should, which works when running the unexported project from the editor, but doesn't when the .gdextension file is in the PCK file - we need to still use the res:// path for loading that.

This PR fixes the issue in my testing on both Linux and Android!

@dsnopek dsnopek added this to the 4.4 milestone Aug 29, 2024
@dsnopek dsnopek requested a review from a team as a code owner August 29, 2024 15:10
Copy link
Copy Markdown
Member

@raulsntos raulsntos left a comment

Choose a reason for hiding this comment

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

Tested exporting to Linux and works as expected.

@akien-mga akien-mga merged commit 88d8284 into godotengine:master Aug 30, 2024
@akien-mga
Copy link
Copy Markdown
Member

Thanks!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants