public override List <SaveFormatComparator> GetSaveList() { List <SaveFormatComparator> arraylist = new List <SaveFormatComparator>(); string[] afile = Directory.GetDirectories(SavesDirectory); string[] afile1 = afile; int i = afile1.Length; for (int j = 0; j < i; j++) { DirectoryInfo file = new DirectoryInfo(afile1[j]); string s = file.Name; WorldInfo worldinfo = GetWorldInfo(s); Console.WriteLine("the current loading world " + s); if (worldinfo == null) { continue; } bool flag = worldinfo.GetSaveVersion() != Func_48431_c(); string s1 = worldinfo.GetWorldName(); if (s1 == null || MathHelper2.StringNullOrLengthZero(s1)) { s1 = s; } long l = 0L; arraylist.Add(new SaveFormatComparator(s, s1, worldinfo.GetLastTimePlayed(), l, worldinfo.GetGameType(), flag, worldinfo.IsHardcoreModeEnabled())); } return(arraylist); }
public virtual List <SaveFormatComparator> GetSaveList() { List <SaveFormatComparator> arraylist = new List <SaveFormatComparator>(); for (int i = 0; i < 5; i++) { string s = (new StringBuilder()).Append("World").Append(i + 1).ToString(); WorldInfo worldinfo = GetWorldInfo(s); if (worldinfo != null) { Console.WriteLine("Loaded a World"); arraylist.Add(new SaveFormatComparator(s, "", worldinfo.GetLastTimePlayed(), worldinfo.GetSizeOnDisk(), worldinfo.GetGameType(), false, worldinfo.IsHardcoreModeEnabled())); } } return(arraylist); }