private string NewAutosaveFileName() { string text = (from name in AutoSaveNames() where !SaveGameFilesUtility.SavedGameNamedExists(name) select name).FirstOrDefault(); if (text != null) { return(text); } return(AutoSaveNames().MinBy((string name) => new FileInfo(GenFilePaths.FilePathForSavedGame(name)).LastWriteTime)); }
public Dialog_Save() { interactButLabel = "OverwriteButton".Translate(); bottomAreaHeight = 85f; if (Faction.OfPlayer.HasName) { typingName = Faction.OfPlayer.Name; } else { typingName = SaveGameFilesUtility.UnusedDefaultFileName(Faction.OfPlayer.def.LabelCap); } }
private string NewAutosaveFileName() { string text = (from name in this.AutoSaveNames() where !SaveGameFilesUtility.SavedGameNamedExists(name) select name).FirstOrDefault <string>(); string result; if (text != null) { result = text; } else { string text2 = this.AutoSaveNames().MinBy((string name) => new FileInfo(GenFilePaths.FilePathForSavedGame(name)).LastWriteTime); result = text2; } return(result); }
private static bool <NewAutosaveFileName> m__0(string name) { return(!SaveGameFilesUtility.SavedGameNamedExists(name)); }