Beispiel #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));
        }
        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));
 }