godot/platform/windows
Joel Croteau f44d6a235f 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.
2024-08-08 08:31:49 -06:00
..
doc_classes D3D12: Get rid of DXIL.dll! 2024-07-11 17:56:45 +02:00
export D3D12: Get rid of DXIL.dll! 2024-07-11 17:56:45 +02:00
console_wrapper_windows.cpp
crash_handler_windows_seh.cpp
crash_handler_windows_signal.cpp
crash_handler_windows.h
detect.py [Windows] Remove libSynchronization 2024-07-27 17:12:27 +03:00
display_server_windows.cpp Merge pull request #95155 from bruvzg/win_pen_checks 2024-08-06 12:32:02 +02:00
display_server_windows.h Merge pull request #94428 from alvinhochun/windows-angle-resize-sync 2024-07-31 11:37:37 +02:00
gl_manager_windows_angle.cpp Windows: Update ANGLE surface size when window is resized 2024-07-16 17:01:42 +08:00
gl_manager_windows_angle.h Windows: Update ANGLE surface size when window is resized 2024-07-16 17:01:42 +08:00
gl_manager_windows_native.cpp [Windows] Use default aggregate initialization for NVAPI settings 2024-07-25 14:41:46 +02:00
gl_manager_windows_native.h [Windows] Disable G-SYNC in windowed mode 2024-06-29 13:40:15 +02:00
godot_console.ico
godot_res_wrap.rc
godot_res.rc
godot_windows.cpp
godot.ico
godot.natvis
joypad_windows.cpp
joypad_windows.h
key_mapping_windows.cpp
key_mapping_windows.h
lang_table.h
msvs.py Add new VS proj generation logic that supports any platform that wants to opt in 2024-01-31 16:42:42 +01:00
native_menu_windows.cpp [NativeMenu] Do not auto toggle check/multi-state items. Add is_native_menu method. 2024-07-08 11:20:28 +03:00
native_menu_windows.h [NativeMenu] Do not auto toggle check/multi-state items. Add is_native_menu method. 2024-07-08 11:20:28 +03:00
os_windows.cpp Fix reload of GDExtension libraries in framework package on macos 2024-08-08 08:31:49 -06:00
os_windows.h
platform_config.h
platform_gl.h
platform_windows_builders.py
README.md
rendering_context_driver_vulkan_windows.cpp
rendering_context_driver_vulkan_windows.h
SCsub D3D12: Get rid of DXIL.dll! 2024-07-11 17:56:45 +02:00
tts_windows.cpp
tts_windows.h
wgl_detect_version.cpp
wgl_detect_version.h
windows_terminal_logger.cpp
windows_terminal_logger.h
windows_utils.cpp Fix type-limits warning in windows_utils 2024-06-22 23:04:00 +02:00
windows_utils.h

Windows platform port

This folder contains the C++ code for the Windows platform port.

See also misc/dist/windows folder for additional files used by this platform.

Documentation