Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix loading GDExtensions in exported games #96287

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

dsnopek
Copy link
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
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
19 checks passed
@akien-mga
Copy link
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