Revert "rename BookTags.json to UserDefinedItems.json"

This reverts commit cd418e877d.
This commit is contained in:
Robert McRackan 2021-07-27 11:54:47 -04:00
parent cd418e877d
commit af81367b46
4 changed files with 4 additions and 18 deletions

View file

@ -51,7 +51,6 @@ namespace LibationLauncher
migrate_to_v5_0_0(config);
migrate_to_v5_2_0__post_config(config);
migrate_to_v5_3_10(config);
ensureSerilogConfig(config);
configureLogging(config);
@ -142,7 +141,7 @@ namespace LibationLauncher
CancelInstallation();
}
#region migrate to v5.0.0: re-register device if device info not in settings
#region migrate_to_v5_0_0 re-register device if device info not in settings
private static void migrate_to_v5_0_0(Configuration config)
{
if (!config.Exists(nameof(config.AllowLibationFixup)))
@ -230,19 +229,6 @@ namespace LibationLauncher
}
#endregion
#region migrate to v5.3.10: rename BookTags.json to UserDefinedItems.json
private static void migrate_to_v5_3_10(Configuration config)
{
var oldPath = Path.Combine(config.LibationFiles, "BookTags.json");
if (File.Exists(oldPath))
{
var newPath = Path.Combine(config.LibationFiles, "UserDefinedItems.json");
File.Move(oldPath, newPath);
}
}
#endregion
private static void ensureSerilogConfig(Configuration config)
{
if (config.GetObject("Serilog") != null)