openmw/components/files
AnyOldName3 166852254f Use non-deprecated known folder API
SHGetFolderPathW was deprecated in Windows Vista nearly two decades ago. ShGetKnownFolderPath is the replacement.

Also log if there was an error. Someone seemed to be getting an error on Discord, despite other apps being able to get the path just fine with these functions.

Also don't pass the flags to create the folders if they don't exist. We probably don't have the right permissions and if they don't exist, then there are bigger problems. Maybe this will fix the issue the user was having.

Also add a comment about global config on Windows being fundamentally wrong.
2025-03-25 01:32:44 +00:00
..
androidpath.cpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
androidpath.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
collections.cpp Drop support for --fs-strict 2023-06-08 21:10:09 +02:00
collections.hpp Drop support for --fs-strict 2023-06-08 21:10:09 +02:00
configfileparser.cpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
configfileparser.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
configurationmanager.cpp Ensure default config values are present 2024-03-08 01:44:47 +00:00
configurationmanager.hpp Remove dead code 2024-11-14 22:16:05 +04:00
constrainedfilestream.cpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
constrainedfilestream.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
constrainedfilestreambuf.cpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
constrainedfilestreambuf.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
conversion.cpp Add new functions and overloads to support std::u8string and std::filesystem::path. 2022-09-11 14:41:20 +02:00
conversion.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
fixedpath.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
hash.cpp Replace std::filesystem::path by std::string_view in Files::getHash argument 2024-03-11 22:07:37 +01:00
hash.hpp Replace std::filesystem::path by std::string_view in Files::getHash argument 2024-03-11 22:07:37 +01:00
istreamptr.hpp Move Files::IStreamPtr alias to a separate header 2022-07-17 11:35:39 +02:00
linuxpath.cpp Remove strerror usages 2023-01-29 22:41:59 +01:00
linuxpath.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
macospath.cpp Set MacOS current_path before reading configuration files [#7706] 2024-01-11 00:59:27 +00:00
macospath.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
memorystream.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
multidircollection.cpp Drop support for --fs-strict 2023-06-08 21:10:09 +02:00
multidircollection.hpp Drop support for --fs-strict 2023-06-08 21:10:09 +02:00
openfile.cpp Remove strerror usages 2023-01-29 22:41:59 +01:00
openfile.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
qtconfigpath.hpp Load all config files 2024-02-25 14:01:20 +00:00
qtconversion.cpp Added dedicated functions for conversions between QString and std::filesystem::path. 2022-09-11 14:41:21 +02:00
qtconversion.hpp Added dedicated functions for conversions between QString and std::filesystem::path. 2022-09-11 14:41:21 +02:00
streamwithbuffer.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
windowspath.cpp Use non-deprecated known folder API 2025-03-25 01:32:44 +00:00
windowspath.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00