MCPcopy Create free account
hub / github.com/YtFlow/Maple / GetDefaultConfigFolder

Method GetDefaultConfigFolder

Maple.App/ConfigUtil.cpp:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 return currentAppData;
16 }
17 IAsyncOperation<StorageFolder> ConfigUtil::GetDefaultConfigFolder()
18 {
19 auto configItem = co_await LocalFolder.TryGetItemAsync(LocalFolderConfigDirName);
20 if (configItem == nullptr || configItem.IsOfType(StorageItemTypes::File)) {
21 configItem = co_await LocalFolder.CreateFolderAsync(LocalFolderConfigDirName, CreationCollisionOption::ReplaceExisting);
22 }
23 co_return configItem.as<StorageFolder>();
24 }
25 IAsyncOperation<IStorageFolder> ConfigUtil::GetConfigFolder()
26 {
27 if (cachedConfigFolder)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected