Windows: store config file in RoamingAppData instead of LocalAppData

This commit is contained in:
李通洲
2023-01-03 16:56:18 +08:00
parent 30f9bcbd22
commit f3db4e49b6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ static void initConfigDirs(FFstate* state)
{
PWSTR pPath;
if(SUCCEEDED(SHGetKnownFolderPath(&FOLDERID_LocalAppData, 0, NULL, &pPath)))
if(SUCCEEDED(SHGetKnownFolderPath(&FOLDERID_RoamingAppData, 0, NULL, &pPath)))
{
FFstrbuf* buffer = (FFstrbuf*) ffListAdd(&state->configDirs);
ffStrbufInit(buffer);