remove irrelevant directories from cleanup

This commit is contained in:
pointfeev 2022-03-08 16:53:43 -05:00
parent 4c0716e768
commit d6a2829cbe
2 changed files with 3 additions and 15 deletions

View file

@ -5,7 +5,7 @@
<UseWindowsForms>True</UseWindowsForms>
<ApplicationIcon>Resources\ini.ico</ApplicationIcon>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<Version>3.2.1.1</Version>
<Version>3.2.1.2</Version>
<PackageIcon>Resources\ini.ico</PackageIcon>
<PackageIconUrl />
<Description />

View file

@ -146,11 +146,9 @@ internal static class SteamCMD
}
internal static readonly string AppCachePath = DirectoryPath + @"\appcache";
internal static readonly string ConfigPath = DirectoryPath + @"\config";
internal static readonly string DumpsPath = DirectoryPath + @"\dumps";
internal static readonly string LogsPath = DirectoryPath + @"\logs";
internal static readonly string SteamAppsPath = DirectoryPath + @"\steamapps";
internal static readonly string UserDataPath = DirectoryPath + @"\userdata";
internal static async Task Cleanup() => await Task.Run(async () =>
{
@ -176,12 +174,7 @@ internal static class SteamCMD
catch { }
try
{
if (Directory.Exists(AppCachePath)) Directory.Delete(AppCachePath, true);
}
catch { }
try
{
if (Directory.Exists(ConfigPath)) Directory.Delete(ConfigPath, true);
if (Directory.Exists(AppCachePath)) Directory.Delete(AppCachePath, true); // this is definitely needed, so SteamCMD gets the latest information for us
}
catch { }
try
@ -196,12 +189,7 @@ internal static class SteamCMD
catch { }
try
{
if (Directory.Exists(SteamAppsPath)) Directory.Delete(SteamAppsPath, true);
}
catch { }
try
{
if (Directory.Exists(UserDataPath)) Directory.Delete(UserDataPath, true);
if (Directory.Exists(SteamAppsPath)) Directory.Delete(SteamAppsPath, true); // this is just a useless folder created from +app_update 4
}
catch { }
});