Move manager Update methods to be explicit to where they are still used by legacy code

Also fixes skin hash repopulation being completely broken.
This commit is contained in:
Dean Herbert
2022-01-12 14:38:37 +09:00
parent a307f7e90e
commit a4de0f93fa
6 changed files with 11 additions and 28 deletions

View File

@ -101,5 +101,14 @@ namespace osu.Game.Beatmaps
using (var context = ContextFactory.CreateContext())
return context.All<BeatmapInfo>().FirstOrDefault(query)?.Detach();
}
public void Update(BeatmapSetInfo item)
{
using (var realm = ContextFactory.CreateContext())
{
var existing = realm.Find<BeatmapSetInfo>(item.ID);
realm.Write(r => item.CopyChangesToRealm(existing));
}
}
}
}