public static string GeneratePermadeathSaveName()
        {
            string text = NameGenerator.GenerateName(Faction.OfPlayer.def.factionNameMakerPlayer, null, false, null);
            int    num  = 0;
            string text2;

            do
            {
                num++;
                text2 = text;
                if (num != 1)
                {
                    text2 += num;
                }
                text2 = PermadeathModeUtility.AppendPermadeathModeSuffix(text2);
            }while (SaveGameFilesUtility.SavedGameNamedExists(text2));
            return(text2);
        }
        public static string GeneratePermadeathSaveName()
        {
            string text = NameGenerator.GenerateName(Faction.OfPlayer.def.factionNameMakerPlayer, (Predicate <string>)null, false, (string)null);
            int    num  = 0;
            string text2;

            while (true)
            {
                num++;
                text2 = text;
                if (num != 1)
                {
                    text2 += num;
                }
                text2 = PermadeathModeUtility.AppendPermadeathModeSuffix(text2);
                if (!SaveGameFilesUtility.SavedGameNamedExists(text2))
                {
                    break;
                }
            }
            return(text2);
        }