// ReSharper disable once UnusedMember.Global protected string GetSaveSlotFileName(int slotIndex, SaveSlotFileNameUsage usage) { string text = slotIndex == 0 ? "user.dat" : $"user{slotIndex}.dat"; string modhook = ModHooks.GetSaveFileName(slotIndex); text = string.IsNullOrEmpty(modhook) ? text : modhook; switch (usage) { case SaveSlotFileNameUsage.Backup: text += ".bak"; break; case SaveSlotFileNameUsage.BackupMarkedForDeletion: text += ".del"; break; } return(text); }