예제 #1
0
        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));
        }
예제 #2
0
 public Dialog_Save()
 {
     interactButLabel = "OverwriteButton".Translate();
     bottomAreaHeight = 85f;
     if (Faction.OfPlayer.HasName)
     {
         typingName = Faction.OfPlayer.Name;
     }
     else
     {
         typingName = SaveGameFilesUtility.UnusedDefaultFileName(Faction.OfPlayer.def.LabelCap);
     }
 }
예제 #3
0
        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);
        }
예제 #4
0
 private static bool <NewAutosaveFileName> m__0(string name)
 {
     return(!SaveGameFilesUtility.SavedGameNamedExists(name));
 }