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:
parent
838bcc51b2
commit
ae8a1adae8
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user