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
..
2023-06-08 21:10:09 +02:00
2023-06-08 21:10:09 +02:00
2024-11-14 22:16:05 +04:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2023-01-29 22:41:59 +01:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2023-01-29 22:41:59 +01:00
2022-09-22 21:35:26 +03:00
2024-02-25 14:01:20 +00:00