mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Fix casing on private properties
This commit is contained in:
committed by
Dean Herbert
parent
dc4bd48f29
commit
880399f5a5
@ -11,23 +11,23 @@ namespace osu.Game.Database
|
||||
{
|
||||
public class BeatmapDatabase
|
||||
{
|
||||
private static SQLiteConnection Connection { get; set; }
|
||||
private static SQLiteConnection connection { get; set; }
|
||||
|
||||
public BeatmapDatabase(BasicStorage storage)
|
||||
{
|
||||
if (Connection == null)
|
||||
if (connection == null)
|
||||
{
|
||||
Connection = storage.GetDatabase(@"beatmaps");
|
||||
Connection.CreateTable<BeatmapMetadata>();
|
||||
Connection.CreateTable<BaseDifficulty>();
|
||||
Connection.CreateTable<BeatmapSet>();
|
||||
Connection.CreateTable<Beatmap>();
|
||||
connection = storage.GetDatabase(@"beatmaps");
|
||||
connection.CreateTable<BeatmapMetadata>();
|
||||
connection.CreateTable<BaseDifficulty>();
|
||||
connection.CreateTable<BeatmapSet>();
|
||||
connection.CreateTable<Beatmap>();
|
||||
}
|
||||
}
|
||||
|
||||
public void AddBeatmap(ArchiveReader input)
|
||||
{
|
||||
var metadata = input.ReadMetadata();
|
||||
var metadata = input.ReadMetadata();
|
||||
if (connection.Table<BeatmapSet>().Count(b => b.BeatmapSetID == metadata.BeatmapSetID) != 0)
|
||||
return;
|
||||
string[] mapNames = input.ReadBeatmaps();
|
||||
@ -39,12 +39,12 @@ namespace osu.Game.Database
|
||||
{
|
||||
var decoder = BeatmapDecoder.GetDecoder(stream);
|
||||
var beatmap = decoder.Decode(stream);
|
||||
maps.Add(beatmap);
|
||||
maps.Add(beatmap);
|
||||
beatmap.BaseDifficultyID = connection.Insert(beatmap.BaseDifficulty);
|
||||
}
|
||||
}
|
||||
beatmapSet.BeatmapMetadataID = Connection.Insert(metadata);
|
||||
Connection.Insert(beatmapSet);
|
||||
}
|
||||
beatmapSet.BeatmapMetadataID = connection.Insert(metadata);
|
||||
connection.Insert(beatmapSet);
|
||||
connection.InsertAll(maps);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user