Create Cache Directory in ProgramData

- Created new Cache folder in Program Data
- Relocated Appinfo to Cache folder
- Relocated installed.json to Cache folder
This commit is contained in:
Frog
2026-06-15 03:22:10 -07:00
parent 6eef5e836a
commit 60487d5313
+4 -2
View File
@@ -53,7 +53,9 @@ internal static class ProgramData
internal static readonly string DirectoryPath =
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + @"\CreamInstaller";
internal static readonly string AppInfoPath = DirectoryPath + @"\appinfo";
private static readonly string CachePath = DirectoryPath + @"\Cache";
internal static readonly string AppInfoPath = CachePath + @"\appinfo";
private static readonly string AppInfoVersionPath = AppInfoPath + @"\version.txt";
private static readonly Version MinimumAppInfoVersion = Version.Parse("4.7.0.0");
@@ -65,7 +67,7 @@ internal static class ProgramData
private static readonly string DlcChoicesPath = DirectoryPath + @"\dlc.json";
private static readonly string KoaloaderProxyChoicesPath = DirectoryPath + @"\proxies.json";
private static readonly string ExtraProtectionChoicesPath = DirectoryPath + @"\extraprotection.json";
private static readonly string InstalledGamesPath = DirectoryPath + @"\installed.json";
private static readonly string InstalledGamesPath = CachePath + @"\installed.json";
internal static readonly string ScanLogPath = Path.Combine(DirectoryPath, "game-scan.log");
internal static readonly string SteamLogPath = Path.Combine(DirectoryPath, "cream-steam.log");