mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
f44d6a235f
`GDExtension::open_library` has a check in it to see if the library was loaded from a temp file, and if it was to restore the original name as that is the one we actually care about. This check is breaking extension reloading on Mac when the library path is to a framework folder, as the file inside the framework will not generally be the same name as the folder. This check also shouldn't be necessary even on Windows, which is the only platform that uses `generate_temp_files`, since disposal of the created temp file is handled within `OS_Windows::open_dynamic_library`, and `GDExtension::open_library` (which is the only function to call `open_dynamic_library` with a `p_data` argument) only cares about the original library file path and has to do extra work to remove the name of the temp file. Instead, I have removed that check and set `OS_Windows::open_dynamic_library` to return the name of the original file and not the name of the copy. This fixes GDExtension reloading on macOS. I do not have a Windows machine available to test that it still works properly on Windows, so someone should check that before merging this. |
||
---|---|---|
.. | ||
extension_api_dump.cpp | ||
extension_api_dump.h | ||
gdextension_compat_hashes.cpp | ||
gdextension_compat_hashes.h | ||
gdextension_interface.cpp | ||
gdextension_interface.h | ||
gdextension_manager.cpp | ||
gdextension_manager.h | ||
gdextension.compat.inc | ||
gdextension.cpp | ||
gdextension.h | ||
make_interface_dumper.py | ||
make_wrappers.py | ||
SCsub |