예제 #1
0
파일: Autosaver.cs 프로젝트: potsh/RimWorld
        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
        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);
        }
예제 #3
0
 private static bool <NewAutosaveFileName> m__0(string name)
 {
     return(!SaveGameFilesUtility.SavedGameNamedExists(name));
 }