mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Allow BeatmapDatabase to be constructed without a host.
This commit is contained in:
@ -17,17 +17,18 @@ namespace osu.Game.Database
|
||||
{
|
||||
public class BeatmapDatabase
|
||||
{
|
||||
private static SQLiteConnection connection { get; set; }
|
||||
private SQLiteConnection connection { get; set; }
|
||||
private BasicStorage storage;
|
||||
public event Action<BeatmapSetInfo> BeatmapSetAdded;
|
||||
|
||||
private BeatmapImporter ipc;
|
||||
|
||||
public BeatmapDatabase(BasicGameHost host)
|
||||
public BeatmapDatabase(BasicStorage storage, BasicGameHost importHost = null)
|
||||
{
|
||||
this.storage = host.Storage;
|
||||
this.storage = storage;
|
||||
|
||||
ipc = new BeatmapImporter(host, this);
|
||||
if (importHost != null)
|
||||
ipc = new BeatmapImporter(importHost, this);
|
||||
|
||||
if (connection == null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user