1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-07 22:30:58 +00:00
openmw/apps/wizard
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 Do not use style sheets to set font 2024-05-12 15:34:33 +04:00
unshield Add and fix -Wshadow 2025-08-18 21:09:06 +02:00
utils First pass with include-what-you-use 2022-10-09 10:39:43 +00:00
CMakeLists.txt Support long paths on Windows 2026-01-07 15:12:22 +00:00
componentselectionpage.cpp Do not include formatting spaces to localizable strings 2023-11-30 13:06:50 +04:00
componentselectionpage.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
conclusionpage.cpp Localize Launcher and Wizard 2024-02-01 09:47:25 +04:00
conclusionpage.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
existinginstallationpage.cpp Fix and enforce parameter naming 2025-08-27 12:45:09 +02:00
existinginstallationpage.hpp Fix and enforce parameter naming 2025-08-27 12:45:09 +02:00
importpage.cpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
importpage.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
inisettings.cpp Replace some empty constructors and destructors with default 2023-05-29 13:37:19 +02:00
inisettings.hpp Rename components/to_utf8 directory and files to follow naming conventions 2025-02-23 00:18:07 +03:00
installationpage.cpp Fix file that's not used on Windows 2024-03-06 01:37:40 +00:00
installationpage.hpp First pass with include-what-you-use 2022-10-09 10:39:43 +00:00
installationtargetpage.cpp UI fixes for Wizard 2024-05-01 08:56:35 +04:00
installationtargetpage.hpp Another pass with IWYU 2022-10-10 15:16:18 +02:00
intropage.cpp Another pass with IWYU 2022-10-10 15:16:18 +02:00
intropage.hpp Another pass with IWYU 2022-10-10 15:16:18 +02:00
languageselectionpage.cpp UI fixes for Wizard 2024-05-01 08:56:35 +04:00
languageselectionpage.hpp Another pass with IWYU 2022-10-10 15:16:18 +02:00
main.cpp Fix and enforce namespace naming 2025-07-20 21:19:16 +02:00
mainwizard.cpp Address feedback 2025-12-01 17:08:51 +01:00
mainwizard.hpp Load correct config files in the wizard 2024-02-28 00:49:15 +00:00
methodselectionpage.cpp Do not use style sheets to set font 2024-05-12 15:34:33 +04:00
methodselectionpage.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00