mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Clean up a few warnings in preparation for net-standard
This commit is contained in:
commit
cd8d7af9db
@ -341,6 +341,8 @@ namespace osu.Game.Beatmaps
|
|||||||
/// Returns a <see cref="BeatmapSetInfo"/> to a usable state if it has previously been deleted but not yet purged.
|
/// Returns a <see cref="BeatmapSetInfo"/> to a usable state if it has previously been deleted but not yet purged.
|
||||||
/// Is a no-op for already usable beatmaps.
|
/// Is a no-op for already usable beatmaps.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <param name="beatmaps">The store to restore beatmaps from.</param>
|
||||||
|
/// <param name="files">The store to restore beatmap files from.</param>
|
||||||
/// <param name="beatmapSet">The beatmap to restore.</param>
|
/// <param name="beatmapSet">The beatmap to restore.</param>
|
||||||
private void undelete(BeatmapStore beatmaps, FileStore files, BeatmapSetInfo beatmapSet)
|
private void undelete(BeatmapStore beatmaps, FileStore files, BeatmapSetInfo beatmapSet)
|
||||||
{
|
{
|
||||||
@ -426,6 +428,8 @@ namespace osu.Game.Beatmaps
|
|||||||
/// Import a beamap into our local <see cref="FileStore"/> storage.
|
/// Import a beamap into our local <see cref="FileStore"/> storage.
|
||||||
/// If the beatmap is already imported, the existing instance will be returned.
|
/// If the beatmap is already imported, the existing instance will be returned.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <param name="files">The store to import beatmap files to.</param>
|
||||||
|
/// <param name="beatmaps">The store to import beatmaps to.</param>
|
||||||
/// <param name="reader">The beatmap archive to be read.</param>
|
/// <param name="reader">The beatmap archive to be read.</param>
|
||||||
/// <returns>The imported beatmap, or an existing instance if it is already present.</returns>
|
/// <returns>The imported beatmap, or an existing instance if it is already present.</returns>
|
||||||
private BeatmapSetInfo importToStorage(FileStore files, BeatmapStore beatmaps, ArchiveReader reader)
|
private BeatmapSetInfo importToStorage(FileStore files, BeatmapStore beatmaps, ArchiveReader reader)
|
||||||
|
@ -102,7 +102,7 @@ namespace osu.Game.Database
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public new int SaveChanges(IDbContextTransaction transaction = null)
|
public int SaveChanges(IDbContextTransaction transaction = null)
|
||||||
{
|
{
|
||||||
var ret = base.SaveChanges();
|
var ret = base.SaveChanges();
|
||||||
transaction?.Commit();
|
transaction?.Commit();
|
||||||
@ -262,7 +262,7 @@ namespace osu.Game.Database
|
|||||||
throw new MigrationFailedException(e);
|
throw new MigrationFailedException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (MigrationFailedException e)
|
catch (MigrationFailedException)
|
||||||
{
|
{
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ namespace osu.Game.IO
|
|||||||
{
|
{
|
||||||
public readonly IResourceStore<byte[]> Store;
|
public readonly IResourceStore<byte[]> Store;
|
||||||
|
|
||||||
public Storage Storage => base.Storage;
|
public new Storage Storage => base.Storage;
|
||||||
|
|
||||||
public FileStore(Func<OsuDbContext> createContext, Storage storage) : base(createContext, storage.GetStorageForDirectory(@"files"))
|
public FileStore(Func<OsuDbContext> createContext, Storage storage) : base(createContext, storage.GetStorageForDirectory(@"files"))
|
||||||
{
|
{
|
||||||
|
@ -33,7 +33,7 @@ namespace osu.Game.Overlays.Settings
|
|||||||
|
|
||||||
private SpriteText text;
|
private SpriteText text;
|
||||||
|
|
||||||
private readonly RestoreDefaultValueButton<T> restoreDefaultValueButton = new RestoreDefaultValueButton<T>();
|
private readonly RestoreDefaultValueButton restoreDefaultValueButton = new RestoreDefaultValueButton();
|
||||||
|
|
||||||
public bool ShowsDefaultIndicator = true;
|
public bool ShowsDefaultIndicator = true;
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ namespace osu.Game.Overlays.Settings
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class RestoreDefaultValueButton<T> : Box, IHasTooltip
|
private class RestoreDefaultValueButton : Box, IHasTooltip
|
||||||
{
|
{
|
||||||
private Bindable<T> bindable;
|
private Bindable<T> bindable;
|
||||||
internal Bindable<T> Bindable
|
internal Bindable<T> Bindable
|
||||||
|
@ -114,7 +114,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Timeline
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Zoom target as a relative position in the <see cref="Content"/> space.
|
/// Zoom target as a relative position in the <see cref="ScrollingTimelineContainer.Content"/> space.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private float? relativeContentZoomTarget;
|
private float? relativeContentZoomTarget;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user