mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Add default Beatmap ID
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user