diff --git a/osu.Game/Database/LegacyExporter.cs b/osu.Game/Database/LegacyExporter.cs index d1feb5f0cc..f9164e34cd 100644 --- a/osu.Game/Database/LegacyExporter.cs +++ b/osu.Game/Database/LegacyExporter.cs @@ -41,7 +41,6 @@ namespace osu.Game.Database protected readonly Storage UserFileStorage; private readonly Storage exportStorage; - protected virtual string GetFilename(TModel item) => item.GetDisplayString(); public Action? PostNotification { get; set; } @@ -51,6 +50,16 @@ namespace osu.Game.Database UserFileStorage = storage.GetStorageForDirectory(@"files"); } + /// + /// Returns the baseline name of the file to which the will be exported. + /// + /// + /// The name of the file will be run through to eliminate characters + /// which are not permitted by various filesystems. + /// + /// The item being exported. + protected virtual string GetFilename(TModel item) => item.GetDisplayString(); + /// /// Exports a model to the default export location. /// This will create a notification tracking the progress of the export, visible to the user.