diff --git a/osu.Game/Beatmaps/BeatmapImporter.cs b/osu.Game/Beatmaps/BeatmapImporter.cs index 7e82516bed..14719da1bc 100644 --- a/osu.Game/Beatmaps/BeatmapImporter.cs +++ b/osu.Game/Beatmaps/BeatmapImporter.cs @@ -323,11 +323,11 @@ private DateTimeOffset getDateAdded(ArchiveReader? reader) { var beatmaps = reader.Filenames.Where(f => f.EndsWith(".osu", StringComparison.OrdinalIgnoreCase)); - dateAdded = File.GetLastWriteTimeUtc(legacyReader.GetPath(beatmaps.First())); + dateAdded = File.GetLastWriteTimeUtc(legacyReader.GetFullPath(beatmaps.First())); foreach (string beatmapName in beatmaps) { - var currentDateAdded = File.GetLastWriteTimeUtc(legacyReader.GetPath(beatmapName)); + var currentDateAdded = File.GetLastWriteTimeUtc(legacyReader.GetFullPath(beatmapName)); if (currentDateAdded < dateAdded) dateAdded = currentDateAdded; diff --git a/osu.Game/IO/Archives/LegacyDirectoryArchiveReader.cs b/osu.Game/IO/Archives/LegacyDirectoryArchiveReader.cs index 8a576e33d8..1503705022 100644 --- a/osu.Game/IO/Archives/LegacyDirectoryArchiveReader.cs +++ b/osu.Game/IO/Archives/LegacyDirectoryArchiveReader.cs @@ -21,9 +21,9 @@ public LegacyDirectoryArchiveReader(string path) this.path = Path.GetFullPath(path); } - public override Stream GetStream(string name) => File.OpenRead(GetPath(name)); + public override Stream GetStream(string name) => File.OpenRead(GetFullPath(name)); - public string GetPath(string name) => Path.Combine(path, name); + public string GetFullPath(string filename) => Path.Combine(path, filename); public override void Dispose() {