1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-03 19:26:39 +00:00
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
androidpath.hpp
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
configfileparser.hpp
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
constrainedfilestream.hpp
constrainedfilestreambuf.cpp
constrainedfilestreambuf.hpp
conversion.cpp
conversion.hpp
fixedpath.hpp
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
linuxpath.cpp
linuxpath.hpp
macospath.cpp Set MacOS current_path before reading configuration files [#7706] 2024-01-11 00:59:27 +00:00
macospath.hpp
memorystream.hpp
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
openfile.hpp
qtconfigpath.hpp Load all config files 2024-02-25 14:01:20 +00:00
qtconversion.cpp
qtconversion.hpp
streamwithbuffer.hpp
windowspath.cpp Use non-deprecated known folder API 2025-03-25 01:32:44 +00:00
windowspath.hpp