mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Fix casing on private properties
This commit is contained in:
committed by
Dean Herbert
parent
dc4bd48f29
commit
880399f5a5
@ -18,36 +18,36 @@ namespace osu.Desktop.Beatmaps.IO
|
||||
AddReader<LegacyFilesystemReader>((storage, path) => Directory.Exists(path));
|
||||
}
|
||||
|
||||
private string BasePath { get; set; }
|
||||
private string[] Beatmaps { get; set; }
|
||||
private Beatmap FirstMap { get; set; }
|
||||
private string basePath { get; set; }
|
||||
private string[] beatmaps { get; set; }
|
||||
private Beatmap firstMap { get; set; }
|
||||
|
||||
public LegacyFilesystemReader(string path)
|
||||
{
|
||||
BasePath = path;
|
||||
Beatmaps = Directory.GetFiles(BasePath, "*.osu").Select(f => Path.GetFileName(f)).ToArray();
|
||||
if (Beatmaps.Length == 0)
|
||||
basePath = path;
|
||||
beatmaps = Directory.GetFiles(basePath, "*.osu").Select(f => Path.GetFileName(f)).ToArray();
|
||||
if (beatmaps.Length == 0)
|
||||
throw new FileNotFoundException("This directory contains no beatmaps");
|
||||
using (var stream = new StreamReader(ReadFile(Beatmaps[0])))
|
||||
using (var stream = new StreamReader(ReadFile(beatmaps[0])))
|
||||
{
|
||||
var decoder = BeatmapDecoder.GetDecoder(stream);
|
||||
FirstMap = decoder.Decode(stream);
|
||||
firstMap = decoder.Decode(stream);
|
||||
}
|
||||
}
|
||||
|
||||
public override string[] ReadBeatmaps()
|
||||
{
|
||||
return Beatmaps;
|
||||
return beatmaps;
|
||||
}
|
||||
|
||||
public override Stream ReadFile(string name)
|
||||
{
|
||||
return File.OpenRead(Path.Combine(BasePath, name));
|
||||
return File.OpenRead(Path.Combine(basePath, name));
|
||||
}
|
||||
|
||||
public override BeatmapMetadata ReadMetadata()
|
||||
{
|
||||
return FirstMap.Metadata;
|
||||
return firstMap.Metadata;
|
||||
}
|
||||
|
||||
public override void Dispose()
|
||||
|
Reference in New Issue
Block a user