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

GDExtension: Delete left-over DLL copy before making a new copy #81576

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

dsnopek
Copy link
Contributor

@dsnopek dsnopek commented Sep 12, 2023

As reported in this comment, if Godot crashes before it can clean up the DLL copy, then it will fail to copy it again (and hence fail to load the GDExtension).

This PR will check if the DLL already exists and attempt to delete it, before attempting the copy.

It appears to work in some quick testing on Windows! Like shown in the linked comment, I'm hitting Ctrl-C shortly after starting the editor to force a crash (which leaves the copy behind), and then running the editor again until it fully loads.

@DmitriySalnikov
Copy link
Contributor

Works as intended.
Thanks!

@YuriSizov YuriSizov merged commit 595aca1 into godotengine:master Sep 14, 2023
15 checks passed
@YuriSizov
Copy link
Contributor

Thanks!

@dsnopek dsnopek deleted the gdextension-dll-copy-failure branch July 22, 2024 15:27
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.

4 participants