1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Rename GetPath to GetFullPath to better match expectations

This commit is contained in:
Dean Herbert 2023-08-18 17:56:43 +09:00
parent 864f1bdb3e
commit 5e0b89a1a8
2 changed files with 4 additions and 4 deletions

View File

@ -323,11 +323,11 @@ namespace osu.Game.Beatmaps
{
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;

View File

@ -21,9 +21,9 @@ namespace osu.Game.IO.Archives
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()
{