Exemple #1
0
        private static void SaveConfig(string outputFolder, ISavable savable)
        {
            string outputFileName = "config.txt";

            if (savable is ManiaBeatMap map)
            {
                string artist = map.Helper.Artist;
                string title  = map.Helper.Title;
                outputFileName = $"{artist} - {title} [Intralism].osu";
            }

            string configEndPath = Path.Combine(outputFolder, outputFileName);

            savable.SaveToFile(configEndPath);
        }