mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 11:42:56 +08:00
Merge pull request #14587 from peppy/avoid-exception-on-failed-lookup
Avoid performing beatmap metadata lookups when entering the editor
This commit is contained in:
commit
1594f31427
@ -153,6 +153,11 @@ namespace osu.Game.Beatmaps
|
||||
if (!storage.Exists(cache_database_name))
|
||||
return false;
|
||||
|
||||
if (string.IsNullOrEmpty(beatmap.MD5Hash)
|
||||
&& string.IsNullOrEmpty(beatmap.Path)
|
||||
&& beatmap.OnlineBeatmapID == null)
|
||||
return false;
|
||||
|
||||
try
|
||||
{
|
||||
using (var db = new SqliteConnection(storage.GetDatabaseConnectionString("online")))
|
||||
|
Loading…
Reference in New Issue
Block a user