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:
Dean Herbert 2021-08-31 17:18:04 +09:00
parent d6a0d2aa44
commit a254624373

View File

@ -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")))