mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Improve song selection layout, database loading
Also adds event that notifes the song select when a beatmap is added.
This commit is contained in:
@ -16,6 +16,7 @@ namespace osu.Game.Database
|
||||
{
|
||||
private static SQLiteConnection connection { get; set; }
|
||||
private BasicStorage storage;
|
||||
public event Action<BeatmapSetInfo> BeatmapSetAdded;
|
||||
|
||||
public BeatmapDatabase(BasicStorage storage)
|
||||
{
|
||||
@ -75,6 +76,7 @@ namespace osu.Game.Database
|
||||
connection.Insert(beatmapSet);
|
||||
beatmapSet.BeatmapMetadataID = connection.Insert(metadata);
|
||||
connection.UpdateWithChildren(beatmapSet);
|
||||
BeatmapSetAdded?.Invoke(beatmapSet);
|
||||
}
|
||||
|
||||
public ArchiveReader GetReader(BeatmapSetInfo beatmapSet)
|
||||
|
Reference in New Issue
Block a user