Add local sqlite initialisation to BeatmapUpdaterMetadataLookup for now

This commit is contained in:
Dean Herbert
2022-09-15 16:34:35 +09:00
parent 40a60f7145
commit 0aa92c78ec

View File

@ -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;