mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Catch against sqlite initialisation failures
This commit is contained in:
@ -41,10 +41,17 @@ namespace osu.Game.Beatmaps
|
||||
private const string cache_database_name = "online.db";
|
||||
|
||||
public BeatmapUpdaterMetadataLookup(IAPIProvider api, Storage storage)
|
||||
{
|
||||
try
|
||||
{
|
||||
// required to initialise native SQLite libraries on some platforms.
|
||||
Batteries_V2.Init();
|
||||
raw.sqlite3_config(2 /*SQLITE_CONFIG_MULTITHREAD*/);
|
||||
}
|
||||
catch
|
||||
{
|
||||
// may fail if platform not supported.
|
||||
}
|
||||
|
||||
this.api = api;
|
||||
this.storage = storage;
|
||||
|
Reference in New Issue
Block a user