mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Add local sqlite initialisation to BeatmapUpdaterMetadataLookup
for now
This commit is contained in:
parent
40a60f7145
commit
0aa92c78ec
@ -19,6 +19,7 @@ using osu.Game.Online.API;
|
||||
using osu.Game.Online.API.Requests;
|
||||
using SharpCompress.Compressors;
|
||||
using SharpCompress.Compressors.BZip2;
|
||||
using SQLitePCL;
|
||||
|
||||
namespace osu.Game.Beatmaps
|
||||
{
|
||||
@ -41,6 +42,10 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
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.storage = storage;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user