Add default Beatmap ID

This commit is contained in:
柯十六夜
2016-12-21 14:47:56 +08:00
parent 02f6e46105
commit ef11c3f389
5 changed files with 11 additions and 16 deletions

View File

@ -69,15 +69,9 @@ namespace osu.Game.Database
using (var reader = ArchiveReader.GetReader(storage, path))
metadata = reader.ReadMetadata();
if (metadata.BeatmapSetID != -1)
{
if (connection.Table<BeatmapSetInfo>().Count(b => b.BeatmapSetID == metadata.BeatmapSetID) != 0)
return; // TODO: Update this beatmap instead
}
else
{
// TODO: Another method is required to determine whether two beatmaps with no BeatmapSetID are equal.
}
if (metadata.BeatmapSetID != -1 &&
connection.Table<BeatmapSetInfo>().Count(b => b.BeatmapSetID == metadata.BeatmapSetID) != 0)
return; // TODO: Update this beatmap instead
if (File.Exists(path)) // Not always the case, i.e. for LegacyFilesystemReader
{