This commit is contained in:
TinyHerm committed 2026-11-24 23:40:08 +03:00
commit 1c7a8cf25f
579 files changed
+83196

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
using System;
using System.IO;
namespace VibranceHud;
public static class AppFolders
{
public static string Roaming => For(Environment.SpecialFolder.ApplicationData, RootForTest ?? SecurityCandidate.StorageRoot, FlavourPolicy.Current.DataFolderName);
public static string Local => For(Environment.SpecialFolder.LocalApplicationData, RootForTest ?? SecurityCandidate.StorageRoot, FlavourPolicy.Current.DataFolderName);
public static string Pictures => For(Environment.SpecialFolder.MyPictures, RootForTest ?? SecurityCandidate.StorageRoot);
public static string TaskbarPins => PinnedIn(RootForTest ?? SecurityCandidate.StorageRoot);
internal static string? RootForTest { get; set; }
internal static string PinnedIn(string? root)
{
return Path.Combine((root == null) ? Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) : Path.Combine(root, Environment.SpecialFolder.ApplicationData.ToString()), "Microsoft\\Internet Explorer\\Quick Launch\\User Pinned\\TaskBar");
}
internal static string For(Environment.SpecialFolder folder, string? root)
{
return For(folder, root, "PlexusX");
}
internal static string For(Environment.SpecialFolder folder, string? root, string folderName)
{
return Path.Combine((root == null) ? Environment.GetFolderPath(folder) : Path.Combine(root, folder.ToString()), folderName);
}
}