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

Method SetConfigFolder

Maple.App/ConfigUtil.cpp:46–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 void ConfigUtil::SetConfigFolder(IStorageFolder folder)
47 {
48 if (folder) {
49 StorageApplicationPermissions::FutureAccessList().AddOrReplace(ConfigFolderAccessListKey, folder);
50 }
51 else
52 {
53 StorageApplicationPermissions::FutureAccessList().Remove(ConfigFolderAccessListKey);
54 }
55 cachedConfigFolder = nullptr;
56 usingDefaultConfigFolder = !static_cast<bool>(folder);
57 }
58
59 bool ConfigUtil::UsingDefaultConfigFolder() noexcept {
60 return usingDefaultConfigFolder;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected