1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-08 03:30:57 +00:00
openmw/apps/essimporter
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
..
CMakeLists.txt Support long paths on Windows 2026-01-07 15:12:22 +00:00
convertacdt.cpp Address conversion warnings in essimporter 2025-09-20 16:20:47 +02:00
convertacdt.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
convertcntc.cpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
convertcntc.hpp move most of the files from esm to esm3, keep common code in esm; this is make space for a future with esm4 2022-01-23 17:04:48 +01:00
convertcrec.cpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
convertcrec.hpp move most of the files from esm to esm3, keep common code in esm; this is make space for a future with esm4 2022-01-23 17:04:48 +01:00
converter.cpp Address conversion warnings in essimporter 2025-09-20 16:20:47 +02:00
converter.hpp Resolve a number of Coverity defects 2025-08-06 19:52:09 +02:00
convertinventory.cpp Use NAM9 for stack count 2023-12-31 17:12:46 +00:00
convertinventory.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
convertnpcc.cpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
convertnpcc.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
convertplayer.cpp Use std::array in NpcStats 2023-06-03 14:26:37 +02:00
convertplayer.hpp openMW_test_suite compiles and runs 2022-12-27 19:15:55 +01:00
convertscpt.cpp Convert global script targets 2025-07-27 17:04:14 +02:00
convertscpt.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
convertscri.cpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
convertscri.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
importacdt.hpp Import ESS kill count / selected spell as RefIDs, handle old INFO records 2025-06-12 23:28:14 +03:00
importcellref.cpp Import ESS kill count / selected spell as RefIDs, handle old INFO records 2025-06-12 23:28:14 +03:00
importcellref.hpp essimporter: refactor ESSImport::CellRef and fix doubled actors 2022-07-30 19:30:32 +03:00
importcntc.cpp Add imports 2023-12-17 15:21:12 +01:00
importcntc.hpp Remove sized reads from essimporter 2023-12-17 14:03:45 +01:00
importcrec.cpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
importcrec.hpp Add imports 2023-12-17 15:21:12 +01:00
importdial.cpp Remove sized reads from essimporter 2023-12-17 14:03:45 +01:00
importdial.hpp Add imports 2023-12-17 15:21:12 +01:00
importer.cpp Resolve a number of Coverity defects 2025-08-06 19:52:09 +02:00
importer.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
importercontext.hpp Make sure Vec2iRefId is trivially copyable on GCC 11.3 2023-04-03 14:17:31 +02:00
importgame.cpp Remove sized reads from essimporter 2023-12-17 14:03:45 +01:00
importgame.hpp Add imports 2023-12-17 15:21:12 +01:00
importinfo.cpp Import ESS kill count / selected spell as RefIDs, handle old INFO records 2025-06-12 23:28:14 +03:00
importinfo.hpp Import ESS kill count / selected spell as RefIDs, handle old INFO records 2025-06-12 23:28:14 +03:00
importinventory.cpp Resolve a number of Coverity defects 2025-08-06 19:52:09 +02:00
importinventory.hpp Add imports 2023-12-17 15:21:12 +01:00
importjour.cpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
importjour.hpp Fixed MSVC warnings. 2015-01-26 13:17:16 +13:00
importklst.cpp Import ESS kill count / selected spell as RefIDs, handle old INFO records 2025-06-12 23:28:14 +03:00
importklst.hpp Import ESS kill count / selected spell as RefIDs, handle old INFO records 2025-06-12 23:28:14 +03:00
importnpcc.cpp Remove sized reads from essimporter 2023-12-17 14:03:45 +01:00
importnpcc.hpp Add imports 2023-12-17 15:21:12 +01:00
importplayer.cpp Add a variadic getHNOT 2023-12-20 12:28:34 +01:00
importplayer.hpp Add imports 2023-12-17 15:21:12 +01:00
importproj.cpp Remove sized reads from essimporter 2023-12-17 14:03:45 +01:00
importproj.h Split ESM headers 2024-05-03 01:55:20 +02:00
importques.cpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
importques.hpp Fixed MSVC warnings. 2015-01-26 13:17:16 +13:00
importscpt.cpp Convert global script targets 2025-07-27 17:04:14 +02:00
importscpt.hpp Convert global script targets 2025-07-27 17:04:14 +02:00
importscri.cpp Remove sized reads from essimporter 2023-12-17 14:03:45 +01:00
importscri.hpp Add imports 2023-12-17 15:21:12 +01:00
importsplm.cpp Resolve a number of Coverity defects 2025-08-06 19:52:09 +02:00
importsplm.h Add imports 2023-12-17 15:21:12 +01:00
main.cpp Fix and enforce local variable naming 2025-08-05 21:27:48 +02:00