mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Rename GetPath
to GetFullPath
to better match expectations
This commit is contained in:
parent
864f1bdb3e
commit
5e0b89a1a8
@ -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;
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user