1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 09:27:34 +08:00

Allow seeking via Player.Seek even if disabled

This commit is contained in:
Dean Herbert 2021-08-16 16:47:57 +09:00
parent 838bcc51b2
commit ae8a1adae8

View File

@ -582,13 +582,7 @@ namespace osu.Game.Screens.Play
/// Seek to a specific time in gameplay.
/// </summary>
/// <param name="time">The destination time to seek to.</param>
public void Seek(double time)
{
if (!Configuration.AllowSeeking)
throw new InvalidOperationException($"Seeking has ben disabled by the current {nameof(Configuration)}.");
GameplayClockContainer.Seek(time);
}
public void Seek(double time) => GameplayClockContainer.Seek(time);
private ScheduledDelegate frameStablePlaybackResetDelegate;