godot/drivers
Joel Croteau 6e78eec37f
Fix reload of GDExtension libraries in framework package on macos
`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.

(cherry picked from commit f44d6a235f)
2024-09-16 16:55:39 +02:00
..
alsa Replace `find` with `contains/has` where applicable 2024-05-08 12:37:42 +02:00
alsamidi Move MIDI parsing up from ALSA driver to platform independent driver. 2024-06-25 16:46:30 +01:00
backtrace [Windows] Enable crash reporter on MinGW builds, use libbacktrace to generate stack trace from DWARF symbols. 2024-04-22 16:19:37 +03:00
coreaudio [Drivers,Platform] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable 2023-09-12 20:13:32 +02:00
coremidi Move MIDI parsing up from ALSA driver to platform independent driver. 2024-06-25 16:46:30 +01:00
d3d12 D3D12: Be explicit about all-resources texture barriers 2024-09-16 16:45:55 +02:00
egl EGL: Use EGL_EXT_platform_base whenever possible 2024-06-04 08:43:34 +02:00
gl_context [macOS/Windows] Add optional ANGLE backed OpenGL renderer support. Add EGL_ANDROID_blob_cache caching. 2023-09-21 14:21:00 +03:00
gles3 Fix undefined `alpha_scissor` in standard shader 2024-09-16 16:42:01 +02:00
png Fix arm64/Windows build. 2024-04-30 16:26:42 +03:00
pulseaudio Replace `find` with `contains/has` where applicable 2024-05-08 12:37:42 +02:00
unix Fix reload of GDExtension libraries in framework package on macos 2024-09-16 16:55:39 +02:00
vulkan Fix building with `use_volk=yes` on MacOS 2024-06-19 08:06:44 -05:00
wasapi Use COM smart pointers to handle COM objects safely 2024-05-16 16:46:45 +05:30
windows Merge pull request #91100 from bruvzg/x_finks 2024-04-29 13:00:37 +02:00
winmidi Move MIDI parsing up from ALSA driver to platform independent driver. 2024-06-25 16:46:30 +01:00
xaudio2 Add a `--audio-output-latency` command-line argument 2023-08-17 14:45:17 +02:00
SCsub [Windows] Enable crash reporter on MinGW builds, use libbacktrace to generate stack trace from DWARF symbols. 2024-04-22 16:19:37 +03:00
register_driver_types.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
register_driver_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00