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); }
/// <summary> /// Checks if the save directory uses the old map format /// </summary> public override bool IsOldMapFormat(string par1Str) { WorldInfo worldinfo = GetWorldInfo(par1Str); return(worldinfo != null && worldinfo.GetSaveVersion() != Func_48431_c()); }