mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00:00
Avoid performing beatmap metadata lookups when entering the editor
If none of the lookup parameters are available, skip the lookup completely.
This commit is contained in:
parent
d6a0d2aa44
commit
a254624373
@ -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