tweak renamed folder per discussion with Omegasis (#513)

This commit is contained in:
Jesse Plamondon-Willard 2018-05-16 02:01:21 -04:00
parent 75af88cf0d
commit 28986e76b8
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ namespace StardewModdingApi.Installer
// special case: rename Omegasis' SaveBackup mod
{
DirectoryInfo oldFolder = new DirectoryInfo(Path.Combine(modsDir.FullName, "SaveBackup"));
DirectoryInfo newFolder = new DirectoryInfo(Path.Combine(modsDir.FullName, "SaveBackup (Omegasis)"));
DirectoryInfo newFolder = new DirectoryInfo(Path.Combine(modsDir.FullName, "AdvancedSaveBackup"));
FileInfo manifest = new FileInfo(Path.Combine(oldFolder.FullName, "manifest.json"));
if (manifest.Exists && !newFolder.Exists && File.ReadLines(manifest.FullName).Any(p => p.IndexOf("Omegasis", StringComparison.InvariantCultureIgnoreCase) != -1))
{