mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Add local sqlite initialisation to BeatmapUpdaterMetadataLookup
for now
This commit is contained in:
@ -19,6 +19,7 @@ using osu.Game.Online.API;
|
|||||||
using osu.Game.Online.API.Requests;
|
using osu.Game.Online.API.Requests;
|
||||||
using SharpCompress.Compressors;
|
using SharpCompress.Compressors;
|
||||||
using SharpCompress.Compressors.BZip2;
|
using SharpCompress.Compressors.BZip2;
|
||||||
|
using SQLitePCL;
|
||||||
|
|
||||||
namespace osu.Game.Beatmaps
|
namespace osu.Game.Beatmaps
|
||||||
{
|
{
|
||||||
@ -41,6 +42,10 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
public BeatmapUpdaterMetadataLookup(IAPIProvider api, Storage storage)
|
public BeatmapUpdaterMetadataLookup(IAPIProvider api, Storage storage)
|
||||||
{
|
{
|
||||||
|
// required to initialise native SQLite libraries on some platforms.
|
||||||
|
Batteries_V2.Init();
|
||||||
|
raw.sqlite3_config(2 /*SQLITE_CONFIG_MULTITHREAD*/);
|
||||||
|
|
||||||
this.api = api;
|
this.api = api;
|
||||||
this.storage = storage;
|
this.storage = storage;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user