remove irrelevant directories from cleanup
This commit is contained in:
parent
4c0716e768
commit
d6a2829cbe
2 changed files with 3 additions and 15 deletions
|
@ -5,7 +5,7 @@
|
||||||
<UseWindowsForms>True</UseWindowsForms>
|
<UseWindowsForms>True</UseWindowsForms>
|
||||||
<ApplicationIcon>Resources\ini.ico</ApplicationIcon>
|
<ApplicationIcon>Resources\ini.ico</ApplicationIcon>
|
||||||
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
|
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
|
||||||
<Version>3.2.1.1</Version>
|
<Version>3.2.1.2</Version>
|
||||||
<PackageIcon>Resources\ini.ico</PackageIcon>
|
<PackageIcon>Resources\ini.ico</PackageIcon>
|
||||||
<PackageIconUrl />
|
<PackageIconUrl />
|
||||||
<Description />
|
<Description />
|
||||||
|
|
|
@ -146,11 +146,9 @@ internal static class SteamCMD
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static readonly string AppCachePath = DirectoryPath + @"\appcache";
|
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 DumpsPath = DirectoryPath + @"\dumps";
|
||||||
internal static readonly string LogsPath = DirectoryPath + @"\logs";
|
internal static readonly string LogsPath = DirectoryPath + @"\logs";
|
||||||
internal static readonly string SteamAppsPath = DirectoryPath + @"\steamapps";
|
internal static readonly string SteamAppsPath = DirectoryPath + @"\steamapps";
|
||||||
internal static readonly string UserDataPath = DirectoryPath + @"\userdata";
|
|
||||||
|
|
||||||
internal static async Task Cleanup() => await Task.Run(async () =>
|
internal static async Task Cleanup() => await Task.Run(async () =>
|
||||||
{
|
{
|
||||||
|
@ -176,12 +174,7 @@ internal static class SteamCMD
|
||||||
catch { }
|
catch { }
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (Directory.Exists(AppCachePath)) Directory.Delete(AppCachePath, true);
|
if (Directory.Exists(AppCachePath)) Directory.Delete(AppCachePath, true); // this is definitely needed, so SteamCMD gets the latest information for us
|
||||||
}
|
|
||||||
catch { }
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (Directory.Exists(ConfigPath)) Directory.Delete(ConfigPath, true);
|
|
||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
try
|
try
|
||||||
|
@ -196,12 +189,7 @@ internal static class SteamCMD
|
||||||
catch { }
|
catch { }
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (Directory.Exists(SteamAppsPath)) Directory.Delete(SteamAppsPath, true);
|
if (Directory.Exists(SteamAppsPath)) Directory.Delete(SteamAppsPath, true); // this is just a useless folder created from +app_update 4
|
||||||
}
|
|
||||||
catch { }
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (Directory.Exists(UserDataPath)) Directory.Delete(UserDataPath, true);
|
|
||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue