1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-14 01:00:53 +00:00
openmw/components
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
..
bgsm Don't read terrain parameters for BGSM v1/v2 2025-12-15 14:50:47 +03:00
bsa Increase max ext length to 4 2025-12-12 11:37:02 +01:00
bullethelpers Remove unused includes 2022-10-09 16:44:18 +02:00
compiler Merge branch 'enum_naming' into 'master' 2025-11-23 22:36:23 +03:00
config Resolve a number of Coverity defects 2025-08-06 19:52:09 +02:00
contentselector Fix and enforce local variable naming 2025-08-05 21:27:48 +02:00
crashcatcher Support long paths on Windows 2026-01-07 15:12:22 +00:00
debug Format 2025-09-24 00:01:52 +01:00
detournavigator Partially revert 91b1346761 2025-10-17 17:24:19 +02:00
esm Report number of StringRefIds 2025-12-25 13:26:23 +01:00
esm3 Simplify initialization 2025-12-25 13:04:45 +01:00
esm4 Don't use filesystem::path while looking for vfs files 2025-12-08 16:06:15 +01:00
esmloader Use pathhelpers to populate Collections 2025-09-01 17:57:44 +02:00
esmterrain Use normalized path for correctResourcePath and related functions 2025-12-08 20:38:15 +01:00
fallback Address more engine conversion warnings 2025-09-22 13:33:27 +02:00
files Detect the GOG Galaxy version of Morrowind on Windows 2025-12-21 12:14:19 +01:00
fontloader Use vfs paths in MyGUI data manager 2025-12-08 16:40:39 +01:00
fx Expose sunlight direction to post-processing (#8826) 2025-11-29 20:27:34 +03:00
interpreter Merge branch 'printf' into 'master' 2025-11-10 15:23:48 +00:00
l10n Don't use external formatting for l10n strings 2025-12-08 11:25:23 +01:00
loadinglistener Drop 360-degree screenshot support (#7720) 2024-06-06 14:46:01 +03:00
lua Don't accept table like objects in getFieldOrNil 2025-12-09 11:48:02 +01:00
lua_ui Remove dead code 2025-12-22 17:24:29 +01:00
misc Add extension path type 2025-12-08 20:38:23 +01:00
myguiplatform Use vfs paths in MyGUI data manager 2025-12-08 16:40:39 +01:00
navmeshtool Process worldspaces sequentially by navmeshtool 2025-12-27 16:18:01 +01:00
nif Make NIF base record members conform to the naming conventions 2025-12-16 13:23:30 +03:00
nifbullet Make NIF base record members conform to the naming conventions 2025-12-16 13:23:30 +03:00
nifosg recIndex => recordIndex 2025-12-21 00:40:12 +03:00
platform Fix and enforce parameter naming 2025-08-27 12:45:09 +02:00
process Remove a line break that clang-format was fussing about 2025-06-19 00:27:08 +01:00
resource Report number of StringRefIds 2025-12-25 13:26:23 +01:00
sceneutil Ensure near plane doesn't go past far plane when there are no shadow receivers 2025-12-14 00:21:42 +00:00
sdlutil Add support for modern SDL controller buttons (Touchpad, Misc1, Paddles) 2025-12-05 06:12:35 +03:00
serialization Add missing array include 2023-07-29 00:29:03 +02:00
settings Address more engine conversion warnings 2025-09-22 13:33:27 +02:00
shader Fix compilation with -std=23 2025-12-03 23:21:11 +01:00
sqlite3 Revert "Support wrapped arthimetic types" 2025-10-05 18:06:41 +01:00
std140 Another capitalisation warning 2025-11-10 21:34:46 +00:00
stereo Fix most conversion warnings in components 2025-09-18 22:00:55 +02:00
terrain Address remaining conversion warnings in components 2025-09-20 11:39:31 +02:00
testing Fix path handling for files in BSAs 2025-07-03 08:46:23 +02:00
toutf8 Merge branch 'filenameexceptions' into 'master' 2025-07-01 20:45:33 +00:00
translation Use pathhelpers to populate Collections 2025-09-01 17:57:44 +02:00
version Open matching version of documentation for Launcher Help 2024-02-25 18:20:40 +01:00
vfs Remove unused vfs path symbols 2025-12-14 19:27:39 +01:00
widgets Address remaining conversion warnings in components 2025-09-20 11:39:31 +02:00
CMakeLists.txt Don't link to stub Boost.System library (#8754) 2025-10-26 05:16:26 +03:00
doc.hpp