diff options
| author | 2023-10-16 16:01:46 -0300 | |
|---|---|---|
| committer | 2023-10-16 16:01:46 -0300 | |
| commit | 89d3e81be8b923711a548b0973276353392449a6 (patch) | |
| tree | 7f0920c33d73e5087e93f3a3bde27db5b8cba933 /src/common/fs/path_util.cpp | |
| parent | Merge branch 'new-shortcut' of https://github.com/boludoz/yuzu into new-shortcut (diff) | |
| download | yuzu-89d3e81be8b923711a548b0973276353392449a6.tar.gz yuzu-89d3e81be8b923711a548b0973276353392449a6.tar.xz yuzu-89d3e81be8b923711a548b0973276353392449a6.zip | |
Sugestions and fixes.
Diffstat (limited to 'src/common/fs/path_util.cpp')
| -rw-r--r-- | src/common/fs/path_util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/fs/path_util.cpp b/src/common/fs/path_util.cpp index bcd64156e..60c5e477e 100644 --- a/src/common/fs/path_util.cpp +++ b/src/common/fs/path_util.cpp | |||
| @@ -268,9 +268,9 @@ fs::path GetAppDataRoamingDirectory() { | |||
| 268 | PWSTR appdata_roaming_path = nullptr; | 268 | PWSTR appdata_roaming_path = nullptr; |
| 269 | 269 | ||
| 270 | if (SUCCEEDED(SHGetKnownFolderPath(FOLDERID_RoamingAppData, 0, NULL, &appdata_roaming_path))) { | 270 | if (SUCCEEDED(SHGetKnownFolderPath(FOLDERID_RoamingAppData, 0, NULL, &appdata_roaming_path))) { |
| 271 | std::wstring wideAppdataRoamingPath(appdata_roaming_path); | 271 | std::wstring wide_appdata_roaming_path(appdata_roaming_path); |
| 272 | CoTaskMemFree(appdata_roaming_path); | 272 | CoTaskMemFree(appdata_roaming_path); |
| 273 | return fs::path{Common::UTF16ToUTF8(wideAppdataRoamingPath)}; | 273 | return fs::path{Common::UTF16ToUTF8(wide_appdata_roaming_path)}; |
| 274 | } else { | 274 | } else { |
| 275 | LOG_ERROR(Common_Filesystem, "Failed to get the path to the %APPDATA% directory"); | 275 | LOG_ERROR(Common_Filesystem, "Failed to get the path to the %APPDATA% directory"); |
| 276 | } | 276 | } |