1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-09 19:00:56 +00:00
openmw/apps/launcher
AnyOldName3 16efa6e5b5 Support long paths on Windows
Apparently we'd never bothered opting in, despite nearly everything in all out apps being entirely compatible and designed with long paths in mind.

GetModuleFileNameW is a bit awkward as it's just about the only Win32 function that returns the minimum of the buffer size and the string size - nearly everything else returns the full size even if it won't fit, so you can pass it a null pointer and a size of zero, and it'll tell you how much space you need to allocate.

I pretty much just copied the mostly-working long-path-friendly call site in the crash catcher to windowspath.cpp, but I also noticed that if the function failed and returned zero, the original implementation would loop forever, so I fixed that.

There was some code that could be ditched from the catch monitor as \\?\ is a prefix you can use to opt into long paths for a single API call instead of using the manifest to set it everywhere.
2026-01-07 15:12:22 +00:00
..
ui clean up audio page formatting 2025-08-11 08:13:02 +03:00
utils Fix and enforce local variable naming 2025-08-05 21:27:48 +02:00
CMakeLists.txt Support long paths on Windows 2026-01-07 15:12:22 +00:00
datafilespage.cpp Address conversion warning in the launcher 2025-09-20 16:22:18 +02:00
datafilespage.hpp Merge branch 'massselect' into 'master' 2025-07-04 11:02:55 +00:00
graphicspage.cpp Replace StringUtils::format in components/misc 2025-08-24 16:01:17 +02:00
graphicspage.hpp Rework launcher tabs 2024-01-14 14:05:14 +04:00
importpage.cpp Drop support for Qt5 2025-07-27 10:47:34 +02:00
importpage.hpp Setup launcher configuration manager and logging before initializing UI 2023-03-21 21:29:57 +01:00
main.cpp Fix and enforce namespace naming 2025-07-20 21:19:16 +02:00
maindialog.cpp Drop support for Qt5 2025-07-27 10:47:34 +02:00
maindialog.hpp Update toolbar style sheet when theme changed 2024-05-12 17:26:14 +04:00
sdlinit.cpp Merge branch 'useuless_launcher' into 'master' 2021-05-04 21:09:39 +00:00
sdlinit.hpp Init SDL2 before Qt4 to avoid crash on Linux (bug #4529) 2018-08-07 22:57:16 +04:00
settingspage.cpp Fix and enforce parameter naming 2025-08-27 12:45:09 +02:00
settingspage.hpp Revert "Merge branch 'master' into 'master'" 2025-07-05 01:00:26 +03:00
textslotmsgbox.cpp Implemented Launcher namespace 2013-10-25 11:17:26 -05:00
textslotmsgbox.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00